/* Blog components: cohesive modern card language. Loaded after generated theme CSS. */
.content-blog-list,
.content-blog-detail { padding-top: 26px !important; }
.content-blog-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 24px !important;
    align-items: start !important;
}
.content-blog-main { min-width: 0 !important; }
.content-blog-page-head,
.content-blog-article__header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
    padding: 18px 20px !important;
    background: #fff !important;
    border: 1px solid #dfe8f1 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 26px rgba(24,43,68,.06) !important;
}
.content-blog-page-head__icon {
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 42px !important;
    border-radius: 12px !important;
    background: rgba(38,94,111,.10) !important;
    color: #265e6f !important;
}
.content-blog-page-head h1,
.content-blog-article__header h1 {
    margin: 0 !important;
    color: #0f2741 !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}
.content-blog-page-head p { margin: 4px 0 0 !important; color: #6f8196 !important; }
.content-blog-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
}
.content-blog-card {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}
.content-blog-card__inner {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
    border: 1px solid #dfe8f1 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #20344d !important;
    box-shadow: 0 10px 26px rgba(24,43,68,.07) !important;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}
.content-blog-card__inner:hover { transform: translateY(-3px) !important; box-shadow: 0 14px 34px rgba(24,43,68,.11) !important; text-decoration: none !important; }
.content-blog-card img { width: 100% !important; height: 210px !important; object-fit: cover !important; display: block !important; }
.content-blog-card__body { padding: 18px !important; }
.content-blog-card__body time,
.content-blog-detail__date {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 0 10px !important;
    color: #6f8196 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
}
.content-blog-card__body h2 { margin: 0 0 10px !important; color: #0f2741 !important; font-size: 19px !important; line-height: 1.35 !important; font-weight: 700 !important; }
.content-blog-card__body p { margin: 0 0 14px !important; color: #617083 !important; line-height: 1.65 !important; }
.content-blog-card__body span { color: #265e6f !important; font-weight: 700 !important; }
.content-blog-empty {
    padding: 22px !important;
    background: #fff !important;
    border: 1px dashed #cbd8e4 !important;
    border-radius: 12px !important;
    color: #617083 !important;
}
.content-blog-article {
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #dfe8f1 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 26px rgba(24,43,68,.06) !important;
}
.content-blog-article__header { margin: 0 !important; border-width: 0 0 1px !important; border-radius: 0 !important; box-shadow: none !important; }
.content-blog-detail__image { width: 100% !important; max-height: 520px !important; object-fit: cover !important; border-radius: 0 !important; display: block !important; }
.content-blog-body {
    margin: 0 !important;
    padding: 20px !important;
    color: #20344d !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    background: #fff !important;
    border: 0 !important;
}
.content-blog-body p { margin: 0 0 14px !important; }
.content-blog-detail__terms {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 20px 22px !important;
    background: #fff !important;
}
.content-blog-term-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}
.content-blog-term-row > strong {
    min-width: 78px !important;
    padding-top: 7px !important;
    color: #0f2741 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}
.content-blog-term-row > span { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
.content-blog-sidebar { display: flex !important; flex-direction: column !important; gap: 18px !important; }
.content-blog-widget {
    overflow: hidden !important;
    color: #20344d !important;
    background: #fff !important;
    border: 1px solid #dfe8f1 !important;
    border-top: 3px solid #265e6f !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 34px rgba(24,43,68,.08) !important;
}
.content-blog-widget h3 {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 16px 18px 14px !important;
    color: #0f2741 !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #edf2f7 !important;
}
.content-blog-widget h3 i {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 40px !important;
    border-radius: 10px !important;
    background: #eef5f7 !important;
    color: #265e6f !important;
    font-size: 15px !important;
}
.content-blog-widget__links,
.content-blog-widget__popular { display: flex !important; flex-direction: column !important; gap: 0 !important; padding: 8px 12px !important; }
.content-blog-widget__links a,
.content-blog-widget__popular a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 54px !important;
    padding: 10px 8px !important;
    color: #20344d !important;
    border-bottom: 1px solid #edf2f7 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
}
.content-blog-widget__links a:last-child,
.content-blog-widget__popular a:last-child { border-bottom: 0 !important; }
.content-blog-widget__links a:hover,
.content-blog-widget__popular a:hover { color: #265e6f !important; background: #f7fafc !important; text-decoration: none !important; }
.content-blog-widget__link-main small,
.content-blog-widget__popular small { display: block !important; margin-bottom: 2px !important; color: #7a8da4 !important; font-size: 11px !important; line-height: 1.2 !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: .02em !important; }
.content-blog-widget__link-main strong,
.content-blog-widget__popular strong { display: block !important; color: inherit !important; font-size: 13px !important; line-height: 1.45 !important; font-weight: 600 !important; }
.content-blog-widget__links em { flex: 0 0 auto !important; min-width: 30px !important; height: 26px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; padding: 0 9px !important; border-radius: 999px !important; background: #e9f4ff !important; color: #176fbf !important; font-style: normal !important; font-size: 12px !important; font-weight: 700 !important; }
.content-blog-widget__tags { display: flex !important; flex-wrap: wrap !important; gap: 9px !important; padding: 16px 18px 18px !important; }
.content-blog-widget__tags a,
.content-blog-term { display: inline-flex !important; align-items: center !important; min-height: 34px !important; padding: 7px 12px !important; border-radius: 999px !important; border: 1px solid #d8e6f3 !important; background: #eef6ff !important; color: #20344d !important; font-size: 13px !important; font-weight: 500 !important; text-decoration: none !important; }
.content-blog-term--category { background: #eef6ff !important; border-color: #d8e6f3 !important; color: #20344d !important; }
.content-blog-widget__tags a:hover,
.content-blog-term:hover { background: #e4f1ff !important; border-color: #bfdbf7 !important; color: #176fbf !important; text-decoration: none !important; }
@media (max-width: 991px) {
    .content-blog-layout { grid-template-columns: 1fr !important; }
    .content-blog-grid { grid-template-columns: 1fr !important; }
    .content-blog-sidebar { order: 2 !important; }
}


/* Modern static content page detail */
.content-page-detail {
    padding: 28px 0 42px !important;
}

.content-page-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: start !important;
}

.content-page-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 300px !important;
}

.content-page-card {
    overflow: hidden !important;
    width: 100% !important;
    max-width: none !important;
    border: 1px solid #dfe8f1 !important;
    border-top: 3px solid #265e6f !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #20344d !important;
    box-shadow: 0 14px 34px rgba(24,43,68,.08) !important;
}

.content-page-card__header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 18px 20px 16px !important;
    border-bottom: 1px solid #edf2f7 !important;
    background: #fff !important;
}

.content-page-card__icon {
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 42px !important;
    border-radius: 10px !important;
    background: #eef5f7 !important;
    color: #265e6f !important;
    font-size: 16px !important;
}

.content-page-card__header h1 {
    margin: 0 !important;
    color: #0f2741 !important;
    font-size: 22px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

.content-page-card__body {
    padding: 24px 26px 28px !important;
    color: #20344d !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
    background: #fff !important;
}

.content-page-card__body p {
    margin: 0 0 18px !important;
}

.content-page-card__body h2,
.content-page-card__body h3 {
    margin: 28px 0 12px !important;
    color: #0f2741 !important;
    line-height: 1.35 !important;
}

.content-page-card__body h2 { font-size: 21px !important; }
.content-page-card__body h3 { font-size: 18px !important; }

.content-page-card__body ul,
.content-page-card__body ol {
    margin: 0 0 18px 20px !important;
    padding: 0 !important;
}

.content-page-card__body li {
    margin-bottom: 8px !important;
}

.content-page-sidebar {
    min-width: 0 !important;
}

/* Compact and consistent category dropdown */
.site-navigation .site-nav__categories > li.has-submenu > ul {
    min-width: 190px !important;
    width: max-content !important;
    max-width: 260px !important;
    padding: 8px !important;
    border-radius: 0 0 14px 14px !important;
    box-shadow: 0 14px 30px rgba(24,43,68,.12) !important;
}

.site-navigation .site-nav__categories > li.has-submenu > ul li,
.site-navigation .site-nav__categories > li.has-submenu > ul a {
    width: 100% !important;
}

.site-navigation .site-nav__categories > li.has-submenu > ul a {
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    padding: 9px 12px !important;
    border-radius: 9px !important;
    color: #20344d !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.site-navigation .site-nav__categories > li.has-submenu > ul a:hover {
    background: #eef5f7 !important;
    color: #265e6f !important;
}

@media (max-width: 991px) {
    .content-page-layout.has-sidebar { grid-template-columns: 1fr !important; }
    .content-page-card__header { padding: 16px !important; }
    .content-page-card__body { padding: 20px !important; }
}
