/* Blog (2026-11) — loaded by the blog templates inside whichever team landing
 * base is active. Uses the landing design system: --black #252525,
 * --primary #EFDD00, BaiJamjuree body / Montserrat headings. */

/* ---------- hero ---------- */

.blog-hero {
    background: var(--primary);
    padding: 140px 0 80px;
}

.blog-hero h1 {
    font-size: clamp(44px, 6vw, 82px);
}

.blog-hero-category {
    color: #fff;
}

.blog-hero-subtitle {
    font-size: 22px;
    max-width: 720px;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
}

.blog-categories a {
    background: #fff;
    border-radius: 40px;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.blog-categories a:hover,
.blog-categories a.active {
    background: var(--black);
    color: #fff;
}

/* ---------- article list ---------- */

.blog-list {
    padding: 80px 0 110px;
}

.blog-card {
    height: 100%;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(37, 37, 37, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(37, 37, 37, 0.14);
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.blog-card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f1f1ef;
}

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

.blog-card-cover-placeholder {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        #f1f1ef,
        #f1f1ef 12px,
        #e9e9e6 12px,
        #e9e9e6 24px
    );
}

.blog-card-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    background: var(--primary);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: bold;
}

.blog-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-size: 13px;
    color: rgba(37, 37, 37, 0.55);
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.blog-card-lead {
    font-size: 16px;
    color: rgba(37, 37, 37, 0.75);
    flex-grow: 1;
}

.blog-card-more {
    margin-top: 14px;
    font-weight: bold;
    color: var(--black);
}

.blog-empty {
    padding: 40px 0 80px;
    font-size: 20px;
}

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

.blog-pagination a,
.blog-pagination-current {
    background: #fff;
    border-radius: 40px;
    padding: 10px 20px;
    font-weight: bold;
}

.blog-pagination a:hover {
    background: var(--black);
    color: #fff;
}

/* ---------- article page ---------- */

.blog-article-hero {
    padding-bottom: 60px;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 16px;
}

.blog-breadcrumb a {
    text-decoration: underline;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 16px;
    color: rgba(37, 37, 37, 0.7);
}

.blog-article-author {
    font-weight: bold;
    color: var(--black);
}

.blog-preview-badge {
    background: #fff;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 13px;
    font-weight: bold;
    border: 2px dashed rgba(37, 37, 37, 0.4);
}

.blog-article {
    padding: 70px 0 110px;
}

.blog-article-cover {
    width: 100%;
    border-radius: 32px;
    margin-bottom: 44px;
}

/* body typography — H1 is the article title, content starts at H2/H3 */
.blog-article-body {
    font-size: 19px;
    line-height: 1.65;
}

.blog-article-body h2,
.blog-article-body h3,
.blog-article-body h4 {
    font-family: 'Montserrat';
    margin: 44px 0 16px;
}

.blog-article-body h2 {
    font-size: 34px;
}

.blog-article-body h3 {
    font-size: 26px;
}

.blog-article-body h4 {
    font-size: 21px;
}

.blog-article-body p {
    margin: 0 0 20px;
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

.blog-article-body li {
    margin-bottom: 10px;
}

.blog-article-body a {
    text-decoration: underline;
    font-weight: 500;
}

.blog-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 8px 0;
}

.blog-article-body blockquote {
    border-left: 6px solid var(--primary);
    margin: 24px 0;
    padding: 8px 24px;
    background: #f6f6f4;
    border-radius: 0 16px 16px 0;
}

.blog-article-body hr {
    border: none;
    border-top: 2px dashed rgba(37, 37, 37, 0.25);
    margin: 36px 0;
}

/* ---------- CTA (task item 4) ---------- */

.blog-cta {
    background: var(--primary);
    border-radius: 40px;
    padding: 40px;
    margin-top: 56px;
    text-align: center;
}

.blog-cta-title {
    font-family: 'Montserrat';
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 20px;
}

.blog-cta-btn {
    display: inline-block;
    background: var(--black);
    color: var(--primary);
    font-weight: bold;
    font-size: 17px;
    text-transform: uppercase;
    border-radius: 40px;
    padding: 18px 34px;
    transition: all 0.3s;
}

.blog-cta-btn:hover {
    color: #fff;
}

/* ---------- related articles (internal linking) ---------- */

.blog-related {
    margin-top: 56px;
    border-top: 2px dashed rgba(37, 37, 37, 0.2);
    padding-top: 32px;
}

.blog-related h2 {
    font-size: 28px;
}

.blog-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-related li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(37, 37, 37, 0.08);
}

.blog-related a {
    font-weight: 500;
    text-decoration: underline;
}

.blog-related-date {
    margin-left: 10px;
    font-size: 14px;
    color: rgba(37, 37, 37, 0.55);
}

/* ---------- responsive ---------- */

@media (max-width: 767px) {
    .blog-hero {
        padding: 110px 0 50px;
    }

    .blog-list {
        padding: 50px 0 70px;
    }

    .blog-article {
        padding: 40px 0 70px;
    }

    .blog-article-body {
        font-size: 17px;
    }

    .blog-cta {
        border-radius: 28px;
        padding: 28px 20px;
    }
}
