/* =====================================================================
   Blog — landing, category/tag lists, post page (palette from the theme: #051242 navy, #1d42d9 blue)
   ===================================================================== */
.blog-pill { display: inline-block; padding: 8px 34px; border-radius: 30px; background: #0b2447; color: #fff !important; font-size: 14px; font-weight: 600; border: 0; transition: background .2s, transform .2s; line-height: 1.4; }
.blog-pill:hover { background: #1d42d9; transform: translateY(-1px); }

/* Toolbar: search + category chips */
.blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 36px; }
.blog-search { flex: 0 1 420px; display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 16px; border: 1px solid #e3e9f7; border-radius: 40px; background: #fff; box-shadow: 0 6px 20px rgba(5,18,66,.05); }
.blog-search i { color: #7a7e9a; font-size: 18px; }
.blog-search input { flex: 1; border: 0; outline: 0; font-size: 15px; background: transparent; min-width: 0; }
.blog-search .blog-pill { padding: 8px 20px; }
.blog-cat-chips { flex: 1 1 400px; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.blog-cat-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 30px; background: #f1f5fd; color: #293a5c; font-size: 14px; font-weight: 600; }
.blog-cat-chips a span { background: #fff; border-radius: 20px; padding: 0 7px; font-size: 12px; color: #7a7e9a; }
.blog-cat-chips a:hover, .blog-cat-chips a.active { background: #0b2447; color: #fff; }
.blog-cat-chips a.active span, .blog-cat-chips a:hover span { color: #0b2447; }
.blog-result-count { color: #7a7e9a; margin: -16px 0 20px; }
.blog-empty { padding: 50px; text-align: center; background: #f4f7fe; border-radius: 16px; }

/* Card (reference design: image, title, 3-line excerpt, centred pill) */
.blog-card { height: calc(100% - 30px); margin-bottom: 30px; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #eef4fd; transition: transform .3s, box-shadow .3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(5,18,66,.12); }
.blog-card-img { display: block; aspect-ratio: 16 / 9.5; overflow: hidden; background: #dfe7f7; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 20px; }
.blog-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: #7a7e9a; margin-bottom: 8px; }
.blog-card-cat { color: #1d42d9; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .4px; }
.blog-card-meta i { position: relative; top: 1px; }
.blog-card-title { font-size: 20px; line-height: 1.35; margin: 0 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blog-card-title a { color: #0b1d3a; }
.blog-card-title a:hover { color: #1d42d9; }
.blog-card-text { font-size: 15.5px; line-height: 1.75; color: #3d4663; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-foot { margin-top: auto; text-align: center; }

/* Featured */
.blog-featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; margin-bottom: 60px; }
.blog-featured-main { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 16px; overflow: hidden; background: #0b2447; color: #fff; }
.blog-featured-img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.blog-featured-body { padding: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.blog-featured-body h2 { font-size: 24px; line-height: 1.3; margin: 0; }
.blog-featured-body h2 a { color: #fff; }
.blog-featured-body p { color: rgba(255,255,255,.78); margin: 0; font-size: 15px; line-height: 1.7; }
.blog-featured-body .blog-card-cat { color: #8fb1ff; }
.blog-featured-body .blog-pill { background: #fff; color: #0b2447 !important; margin-top: 8px; }
.blog-featured-body .blog-pill:hover { background: #1d42d9; color: #fff !important; }
.blog-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; background: #ff4f5e; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.blog-meta-row { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.blog-featured-side { display: grid; gap: 16px; align-content: start; }
.blog-mini { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px; border-radius: 14px; background: #eef4fd; align-items: center; transition: background .2s; }
.blog-mini:hover { background: #e2ebfb; }
.blog-mini img { width: 130px; height: 90px; object-fit: cover; border-radius: 10px; }
.blog-mini em { display: block; font-style: normal; color: #1d42d9; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.blog-mini strong { display: block; color: #0b1d3a; font-size: 16px; line-height: 1.35; margin: 3px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-mini small { color: #7a7e9a; }
@media (max-width: 1199px) { .blog-featured { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .blog-featured-main { grid-template-columns: 1fr; } .blog-featured-img img { min-height: 220px; } .blog-mini { grid-template-columns: 100px 1fr; } .blog-mini img { width: 100px; height: 75px; } }

/* Category sections (reference design) */
.blog-section { margin-bottom: 40px; }
.blog-section-head { margin-bottom: 26px; }
.blog-section-head h2 { font-size: 32px; font-weight: 500; margin: 0 0 4px; }
.blog-section-head h2 a { color: #0b1d3a; }
.blog-section-head h2 a:hover { color: #1d42d9; }
.blog-section-head p { margin: 0; color: #7a7e9a; }
.blog-view-all { text-align: center; margin-top: 4px; padding-bottom: 26px; border-bottom: 1px solid #edf1f9; }
.blog-tag-cloud { margin-top: 30px; padding: 28px 32px; border-radius: 16px; background: #f4f7fe; }
.blog-tag-cloud h3 { font-size: 20px; margin-bottom: 14px; }

/* Pagination */
.blog-pagination ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 0; }
.blog-pagination a, .blog-pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; background: #f1f5fd; color: #293a5c; font-weight: 600; }
.blog-pagination a:hover, .blog-pagination .active { background: #0b2447; color: #fff; }

/* Post page */
.svc-hero-meta { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 0; margin: 4px 0 0; color: rgba(255,255,255,.78); font-size: 14px; }
.svc-hero-meta i { color: #8fb1ff; position: relative; top: 1px; }
.blog-detail-img { border-radius: 16px; overflow: hidden; margin-bottom: 26px; background: #eef4fd; }
.blog-detail-img img { width: 100%; max-height: 460px; object-fit: cover; }
.blog-summary { padding: 18px 22px; border-left: 4px solid #1d42d9; border-radius: 0 12px 12px 0; background: #eef4fd; margin-bottom: 26px; }
.blog-summary strong { display: block; color: #0b1d3a; margin-bottom: 4px; }
.blog-summary strong i { color: #f5a623; }
.blog-summary p { margin: 0; font-size: 16.5px; line-height: 1.7; color: #293a5c; }
.blog-toc { padding: 18px 22px; border: 1px solid #e3e9f7; border-radius: 12px; margin-bottom: 30px; }
.blog-toc strong { display: block; margin-bottom: 8px; color: #0b1d3a; }
.blog-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.blog-toc li { margin-bottom: 5px; break-inside: avoid; }
.blog-toc li.toc-l3 { margin-left: 14px; list-style: circle; font-size: 14.5px; }
.blog-toc a { color: #293a5c; }
.blog-toc a:hover { color: #1d42d9; }
@media (max-width: 767px) { .blog-toc ol { columns: 1; } }
.blog-content h2 { font-size: 26px; margin: 34px 0 14px; scroll-margin-top: 110px; }
.blog-content h3 { font-size: 21px; margin: 26px 0 10px; scroll-margin-top: 110px; }
.blog-content ol { list-style: decimal; padding-left: 22px; margin-bottom: 16px; }
.blog-content ol li, .blog-content ul li { margin-bottom: 8px; }
.blog-content table { width: 100%; margin: 18px 0 24px; border-collapse: collapse; font-size: 15px; }
.blog-content th, .blog-content td { border: 1px solid #e3e9f7; padding: 10px 14px; text-align: left; }
.blog-content th { background: #eef4fd; color: #0b1d3a; }
.blog-content img { max-width: 100%; height: auto; border-radius: 10px; }
.blog-content code { background: #f1f5fd; padding: 1px 6px; border-radius: 4px; color: #b01a5c; }
.blog-content blockquote { border-left: 4px solid #1d42d9; padding: 8px 18px; margin: 20px 0; background: #f8faff; font-style: italic; }
.blog-tags, .blog-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.blog-tags .svc-chip-list { margin: 0; }
.blog-share a, .blog-share button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #eef4fd; color: #0b2447; font-size: 20px; border: 0; transition: all .2s; }
.blog-share a:hover, .blog-share button:hover { background: #0b2447; color: #fff; }
.blog-copy.copied { background: #198754 !important; color: #fff !important; }
.blog-faqs { margin-top: 40px; }
.blog-faqs h2 { font-size: 26px; margin-bottom: 16px; }
.blog-faqs details { border: 1px solid #e3e9f7; border-radius: 12px; margin-bottom: 12px; background: #fff; }
.blog-faqs summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: #0b1d3a; list-style: none; position: relative; padding-right: 46px; }
.blog-faqs summary::-webkit-details-marker { display: none; }
.blog-faqs summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 22px; color: #1d42d9; }
.blog-faqs details[open] summary::after { content: "\2212"; }
.blog-faqs details .svc-rich { padding: 0 20px 16px; }
.blog-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 24px; border-radius: 16px; background: #f4f7fe; }
.blog-author-avatar { flex: 0 0 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #0b2447; color: #fff; font-size: 26px; font-weight: 700; }
.blog-author small { color: #7a7e9a; display: block; }
.blog-author strong { font-size: 18px; color: #0b1d3a; }
.blog-author p { margin: 4px 0 0; font-size: 15px; }
.blog-prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.blog-prev-next a { display: block; padding: 16px 20px; border: 1px solid #e3e9f7; border-radius: 12px; transition: border-color .2s; }
.blog-prev-next a:hover { border-color: #1d42d9; }
.blog-prev-next small { display: block; color: #7a7e9a; margin-bottom: 4px; }
.blog-prev-next span { color: #0b1d3a; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-prev-next .is-next { text-align: right; grid-column: 2; }
@media (max-width: 575px) { .blog-prev-next { grid-template-columns: 1fr; } .blog-prev-next .is-next { grid-column: auto; } }
.blog-side-list { list-style: none; padding: 0; margin: 0; }
.blog-side-list li + li { border-top: 1px solid #eef2fb; }
.blog-side-list a { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 10px 0; align-items: center; color: #293a5c; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.blog-side-list a:hover { color: #1d42d9; }
.blog-side-list img { width: 70px; height: 52px; object-fit: cover; border-radius: 8px; }
.blog-side-list small { display: block; font-weight: 400; color: #7a7e9a; margin-top: 2px; }
.blog-related { padding: 10px 0 60px; }
.page-title-area .page-title-content ul.svc-hero-meta li { padding: 0; font-size: 14px; color: rgba(255,255,255,.8); }
.page-title-area .page-title-content ul.svc-hero-meta li::before { display: none; }
.blog-toc ol { columns: 1; }
/* featured: image on top (covers are 1200 × 630), text below */
.blog-featured-main { grid-template-columns: 1fr; }
.blog-featured-img { display: block; aspect-ratio: 1200 / 630; overflow: hidden; }
.blog-featured-img img { min-height: 0; height: 100%; }
.blog-featured-body { padding: 24px 28px 28px; }
.blog-featured-side { grid-template-rows: auto; }
/* Home page blog cards (theme "single-blog" design, filled from Admin → Blogs) */
.home-blog-card { height: calc(100% - 30px); display: flex; flex-direction: column; }
.home-blog-card .blog-img { aspect-ratio: 1200 / 630; overflow: hidden; }
.home-blog-card .blog-img img { width: 100%; height: 100%; object-fit: cover; }
.home-blog-card .content { flex: 1; display: flex; flex-direction: column; }
.home-blog-card .content h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-blog-card .content p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-blog-card .content .line-bnt { margin-top: auto; align-self: flex-start; }
