/* The blog list and article pages. The article body is generated HTML, so its elements are styled by
   tag and by the pg-* classes PromotionGo always emits (answer box, comparison table, FAQ, sources). */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.blog-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 28px rgba(10, 20, 48, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(10, 20, 48, 0.12);
}

.blog-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.blog-card__link:hover {
    text-decoration: none;
    color: inherit;
}

.blog-card__image {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.blog-card__body {
    padding: 22px 24px 26px;
}

.blog-card__date {
    font-size: 0.85rem;
    color: #5a6683;
}

.blog-card__title {
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 8px 0 10px;
}

.blog-card__excerpt {
    color: #3c4766;
    margin-bottom: 14px;
}

.blog-card__more {
    font-weight: 600;
    color: #3355dd;
}

.blog-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 40px;
}

.blog-empty {
    text-align: center;
    color: #5a6683;
}

.blog-article {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.075rem;
    line-height: 1.75;
    color: #1d2742;
}

.blog-article__hero {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 32px;
}

.blog-article__body h2 {
    font-size: 1.6rem;
    margin: 40px 0 14px;
}

.blog-article__body h3 {
    font-size: 1.25rem;
    margin: 28px 0 10px;
}

.blog-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.blog-article__body ul,
.blog-article__body ol {
    padding-left: 1.4em;
    margin-bottom: 1.2em;
}

.blog-article__body a {
    color: #3355dd;
    text-decoration: underline;
}

.blog-article__body .pg-answer-box {
    border-left: 5px solid #3355dd;
    background: #f0f4ff;
    padding: 18px 22px;
    border-radius: 0 12px 12px 0;
    margin: 0 0 28px;
    font-size: 1.1rem;
}

.blog-article__body .pg-answer-box p {
    margin: 0;
}

.blog-article__body .pg-table {
    margin: 28px 0;
    overflow-x: auto;
}

.blog-article__body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}

.blog-article__body caption {
    caption-side: top;
    font-weight: 600;
    padding-bottom: 8px;
    color: #1d2742;
}

.blog-article__body th,
.blog-article__body td {
    border: 1px solid #e3e8f4;
    padding: 10px 12px;
    vertical-align: top;
    text-align: left;
}

.blog-article__body thead th {
    background: #f7f9fd;
}

.blog-article__body .pg-faq {
    margin-top: 40px;
}

.blog-article__body .pg-faq-item {
    border-top: 1px solid #e3e8f4;
    padding: 14px 0;
}

.blog-article__body .pg-faq-item h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.blog-article__body .pg-sources {
    margin-top: 40px;
    font-size: 0.92rem;
    color: #5a6683;
}

.blog-article__body .pg-sources h2 {
    font-size: 1.1rem;
}

.blog-article__cta {
    margin: 48px 0 24px;
    padding: 28px 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a1430, #1f3a8a);
    color: #fff;
}

.blog-article__cta h2 {
    color: #fff;
    font-size: 1.4rem;
    margin-top: 0;
}

.blog-article__back {
    margin-top: 24px;
}

/* Newsletter signup (posts to PromotionGo) */

.newsletter {
    padding: 0 0 64px;
}

.newsletter__panel {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 16px;
    background: #f4f6fc;
    border: 1px solid #e3e8f4;
}

.newsletter__panel h2 {
    margin-top: 0;
}

.newsletter__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.newsletter__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}

.newsletter__field input {
    padding: 10px 12px;
    border: 1px solid #c9d2e8;
    border-radius: 8px;
    font: inherit;
    font-weight: 400;
}

.newsletter__consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.newsletter__consent input {
    margin-top: 4px;
}

.newsletter__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
