/* Blog shared layout */
.blog-hero {
    background: url("../img/intro-bg.jpg") no-repeat center center;
    background-image: image-set(url("../img/intro-bg.webp") type("image/webp"), url("../img/intro-bg.jpg") type("image/jpeg"));
    background-size: cover;
    color: #fff;
    padding: 4rem 1rem;
    text-align: center;
}

.blog-hero .container,
.article-hero .container {
    max-width: 900px;
}

.blog-hero h1,
.article-hero h1 {
    font-weight: 700;
}

.blog-hero p,
.article-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    margin: 1rem auto 0;
    max-width: 720px;
}

.blog-content {
    padding: 3rem 0;
}

.blog-content .container,
.article-gallery .container,
.article-cta .container,
.related-posts .container {
    max-width: 900px;
}

.blog-card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
}

.blog-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #212529;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blog-card:hover,
.blog-card:focus {
    color: #212529;
    box-shadow: 0 0.5rem 1.5rem rgba(33, 37, 41, 0.08);
    transform: translateY(-2px);
}

.blog-card-visual {
    align-items: center;
    background: #dff3ff;
    color: #0d6efd;
    display: flex;
    font-size: 2rem;
    justify-content: center;
    aspect-ratio: 16 / 9;
    min-height: 150px;
    overflow: hidden;
}

.blog-card-visual img {
    display: block;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    width: 100%;
}

.blog-card-visual picture {
    display: block;
    height: 100%;
    width: 100%;
}

.blog-card-body {
    padding: 1.25rem;
}

.blog-card-date {
    color: #6c757d;
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}

.blog-card h2,
.blog-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.blog-card p {
    color: #495057;
    margin-bottom: 0;
}

.article-hero {
    background: url("../img/intro-bg.jpg") no-repeat center center;
    background-image: image-set(url("../img/intro-bg.webp") type("image/webp"), url("../img/intro-bg.jpg") type("image/jpeg"));
    background-size: cover;
    color: #fff;
    padding: 4.25rem 1rem 0;
    text-align: center;
}

.article-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    justify-content: center;
    margin-top: 1.15rem;
}

.article-label {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.7rem;
    text-transform: uppercase;
}

.article-meta span {
    align-items: center;
    background: transparent;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.78);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.35rem;
    letter-spacing: 0;
    padding: 0;
    text-transform: none;
}

.article-meta span + span::before {
    color: rgba(255, 255, 255, 0.5);
    content: "·";
    margin-right: 0.3rem;
}

.article-meta i {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

.article-hero-visual {
    aspect-ratio: 16 / 9;
    background: #fff;
    border-radius: 8px 8px 0 0;
    margin: 2.75rem auto 0;
    max-width: 860px;
    overflow: hidden;
}

.article-hero-visual img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.article-hero-visual picture {
    display: block;
    height: 100%;
    width: 100%;
}

.breadcrumb-wrap {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.9rem;
    padding: 0.85rem 0;
}

.breadcrumb-wrap a {
    text-decoration: none;
}

.breadcrumb-separator {
    color: #adb5bd;
    display: inline-block;
    margin: 0 0.55rem;
}

.article-content {
    max-width: 900px;
    padding: 3rem 1rem;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
}

.article-content p,
.article-content li {
    font-size: 1.05rem;
    line-height: 1.75;
}

.article-note {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    border-radius: 8px;
    margin: 2rem 0;
    padding: 1.25rem;
}

.article-image {
    margin: 2rem 0;
}

.article-image img {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: block;
    height: auto;
    width: 100%;
}

.article-image picture {
    display: block;
    width: 100%;
}

.article-gallery {
    background: #f8f9fa;
    margin: 3rem 0;
    padding: 3rem 0;
    text-align: center;
}

.article-gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-top: 1.5rem;
}

.article-gallery-grid img {
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.article-cta {
    background: #212529;
    color: #fff;
    margin: 3rem 0;
    padding: 3rem 1rem;
    text-align: center;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0 auto 1.5rem;
    max-width: 620px;
}

.related-posts {
    background: #f8f9fa;
    padding: 3rem 0;
}

.back-to-apps {
    margin-top: 2rem;
}

@media (max-width: 767.98px) {
    .blog-hero,
    .article-hero {
        padding: 3rem 1rem;
    }

    .blog-hero p,
    .article-hero p {
        font-size: 1rem;
    }

    .article-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-left: auto;
        margin-right: auto;
        max-width: 340px;
    }

    .article-content {
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
    }

    .article-hero {
        padding-bottom: 0;
    }

    .article-hero-visual {
        margin-top: 2rem;
    }

    .blog-card-grid {
        grid-template-columns: 1fr;
    }
}
