/* Herbie Blog 1: all rules stay inside this archive. */
#herbie-blog-main { width: 100%; display: block; font-family: inherit; }
#herbie-blog-main .herbie-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
#herbie-blog-main .herbie-blog-hero-section { background: #fff; padding: 80px 0 60px; border-bottom: 1px solid #edf2f7; }
#herbie-blog-main .herbie-blog-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
#herbie-blog-main .herbie-blog-archive-title { margin: 0 0 20px; overflow-wrap: anywhere; }
#herbie-blog-main .herbie-blog-hero-text p { font-size: 1.15rem; line-height: 1.8; color: #334155; margin: 0 0 20px; font-weight: 400; }
#herbie-blog-main .herbie-blog-hero-text p:last-child { margin-bottom: 0; }
#herbie-blog-main .herbie-blog-hero-image img { width: 100%; height: auto; max-height: 380px; object-fit: contain; display: block; margin: 0 auto; }
#herbie-blog-main .herbie-blog-archive-content { padding: 60px 0; background: #f8fafc; }
#herbie-blog-main .herbie-blog-grid { display: grid; grid-template-columns: repeat(var(--nptherbie-blog-columns,3),minmax(0,1fr)); gap: var(--nptherbie-blog-grid-gap,30px); }
#herbie-blog-main .herbie-blog-grid.herbie-layout-list { grid-template-columns: minmax(0,1fr); max-width: 900px; margin: 0 auto; }
#herbie-blog-main .herbie-blog-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 4px 15px #00000008; transition: transform .3s ease,box-shadow .3s ease; display: flex; flex-direction: column; min-width: 0; }
#herbie-blog-main .herbie-blog-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px #00000014; border-color: #38bdf8; }
#herbie-blog-main .herbie-blog-img-wrap { display: block; width: 100%; height: var(--nptherbie-blog-image-height,220px); position: relative; overflow: hidden; background: #e2e8f0; flex-shrink: 0; }
#herbie-blog-main .herbie-blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
#herbie-blog-main .herbie-blog-card:hover .herbie-blog-img-wrap img { transform: scale(1.08); }
#herbie-blog-main .herbie-blog-cat-tag { position: absolute; top: 15px; left: 15px; max-width: calc(100% - 30px); box-sizing: border-box; background: #ffd700; color: #001d3d; padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; box-shadow: 0 2px 5px #0003; z-index: 5; overflow-wrap: anywhere; }
#herbie-blog-main .herbie-blog-card-body { padding: var(--nptherbie-blog-padding,25px); flex-grow: 1; display: flex; flex-direction: column; gap: var(--nptherbie-blog-content-gap,12px); min-width: 0; }
#herbie-blog-main .herbie-blog-meta-date { font-size: 13px; color: #64748b; margin: 0; font-weight: 600; display: flex; align-items: center; gap: 5px; }
#herbie-blog-main .herbie-blog-card-title { font-size: var(--nptherbie-blog-title-size,20px) !important; margin: 0; font-weight: 800; line-height: var(--nptherbie-blog-title-line-height,1.4) !important; letter-spacing: var(--nptherbie-blog-letter-spacing,0px) !important; word-spacing: var(--nptherbie-blog-word-spacing,0px) !important; overflow-wrap: anywhere; }
#herbie-blog-main .herbie-blog-card-title a { color: #001d3d; font-size: inherit; line-height: inherit; letter-spacing: inherit; word-spacing: inherit; text-decoration: none; transition: color .3s; }
#herbie-blog-main .herbie-blog-card-title a:hover { color: #0284c7; }
#herbie-blog-main .herbie-blog-card-excerpt { color: #475569; font-size: var(--nptherbie-blog-desc-size,15px); line-height: var(--nptherbie-blog-desc-line-height,1.6); letter-spacing: var(--nptherbie-blog-letter-spacing,0px); word-spacing: var(--nptherbie-blog-word-spacing,0px); margin: 0; flex-grow: 1; overflow-wrap: anywhere; }
#herbie-blog-main .herbie-blog-read-more { font-weight: 700; color: #0284c7; text-decoration: none; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; display: inline-block; transition: color .3s; }
#herbie-blog-main .herbie-blog-read-more:hover { color: #0369a1; text-decoration: underline; }
#herbie-blog-main .herbie-layout-list .herbie-blog-card { flex-direction: row; }
#herbie-blog-main .herbie-layout-list .herbie-blog-img-wrap { width: 32%; height: auto; min-height: var(--nptherbie-blog-image-height,220px); align-self: stretch; }
#herbie-blog-main .herbie-layout-list .herbie-blog-img-wrap img { position: absolute; inset: 0; }
#herbie-blog-main .herbie-blog-pagination { margin-top: 40px; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#herbie-blog-main .herbie-blog-pagination .page-numbers { display: inline-block; padding: 10px 16px; border-radius: 8px; background: #fff; border: 1px solid #cbd5e1; color: #001d3d; text-decoration: none; font-size: 15px; font-weight: 700; }
#herbie-blog-main .herbie-blog-pagination .current { background: #001d3d; color: #ffd700; border-color: #001d3d; }
#herbie-blog-main .herbie-blog-pagination .page-numbers:hover { background: #001d3d; color: #ffd700; border-color: #001d3d; }
#herbie-blog-main .herbie-blog-no-posts { text-align: center; padding: 40px 20px; background: #fff; border-radius: 12px; color: #64748b; border: 1px dashed #cbd5e1; }
@media (max-width:1024px) {
    #herbie-blog-main .herbie-blog-grid:not(.herbie-layout-list) { grid-template-columns: repeat(2,minmax(0,1fr)); }
    #herbie-blog-main .herbie-blog-hero-grid { grid-template-columns: minmax(0,1fr); gap: 30px; text-align: center; }
    #herbie-blog-main .herbie-blog-hero-section { padding: 50px 0 30px; }
}
@media (max-width:767px) {
    #herbie-blog-main .herbie-blog-grid:not(.herbie-layout-list) { grid-template-columns: minmax(0,1fr); }
    #herbie-blog-main .herbie-blog-hero-text p { font-size: 1rem; }
    #herbie-blog-main .herbie-blog-card-body { padding: var(--nptherbie-blog-mobile-padding,20px); }
    #herbie-blog-main .herbie-blog-card-title { font-size: var(--nptherbie-blog-title-mobile-size,18px) !important; }
    #herbie-blog-main .herbie-blog-card-excerpt { font-size: var(--nptherbie-blog-desc-mobile-size,14px); }
    #herbie-blog-main .herbie-blog-img-wrap { height: var(--nptherbie-blog-image-mobile-height,200px); }
    #herbie-blog-main .herbie-layout-list .herbie-blog-card { flex-direction: column; }
    #herbie-blog-main .herbie-layout-list .herbie-blog-img-wrap { width: 100%; height: var(--nptherbie-blog-image-mobile-height,200px); min-height: 0; }
}
