/*
 * AJS Media - Helpful Articles component styles.
 * Extends the existing template design tokens (see css/custom.css).
 */

/* ---- Layout helpers ---- */
.blog-section-pagination .itemListView { margin-bottom: 30px; }
.blog-search-form .input-group { display: flex; width: 100%; }
.blog-search-form .input-group .form-control {
    height: 44px;
    border-radius: 2px 0 0 2px;
    border: 1px solid #ececec;
    box-shadow: none;
}
.blog-search-form .input-group-btn .btn { height: 44px; border-radius: 0 2px 2px 0; padding: 0 18px; }
.blog-search-form--page { max-width: 520px; }
.blog-search__count { color: #9a9a9a; margin-bottom: 20px; }

/* ---- Card extras ---- */
.eBlog .itemContainer { position: relative; }
.itemTagsBlock a {
    display: inline-block;
    margin: 0 6px 6px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #9a9a9a;
}
.itemTagsBlock a:hover { color: #cd2122; }
.itemTagsBlock > span { margin-right: 6px; color: #bababa; font-size: 12px; text-transform: uppercase; }
.featured-post .itemFeatContent-inner { padding: 6px 0; }

/* ---- Single article ---- */
.blog-article .page-title { margin-bottom: 15px; }
.blog-article .itemBody img { max-width: 100%; height: auto; }
.blog-article-actions { margin: 25px 0 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.js-like.is-liked { color: #cd2122; border-color: #cd2122; }
.blog-share { display: inline-flex; align-items: center; gap: 8px; }
.blog-share__label { color: #9a9a9a; font-size: 12px; text-transform: uppercase; }
.blog-share a {
    display: inline-flex;
    width: 34px; height: 34px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: #f1f1f1;
    color: #535353;
}
.blog-share a:hover { background: #cd2122; color: #fff; }
.blog-article-nav { border-top: 1px solid #ececec; padding-top: 30px; margin-top: 10px; }
.blog-article-nav__link { display: block; color: #050505; font-weight: 600; }
.blog-article-nav__link:hover { color: #cd2122; }
.blog-related .related-articles .rta-title { font-size: 14px; text-align: center; text-transform: uppercase; margin: 0 0 30px; }
.blog-related .related-articles .rta-post > a { display: block; position: relative; }
.blog-related .related-articles .rta-post > a:after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 0;
    background-color: #cd2122; -webkit-transition: height .25s ease-in-out; transition: height .25s ease-in-out;
}
.blog-related .related-articles .rta-post:hover > a:after { height: 8px; }
.blog-related .related-articles .rta-post img { width: 100%; height: auto; display: block; }
.blog-related .related-articles .rta-post .rta-post__placeholder {
    display: block; width: 100%; min-height: 140px; background: #f1f1f1;
}
.blog-related .related-articles .rta-post h5 { text-transform: uppercase; margin-top: 10px; }
.blog-related .related-articles .rta-post h5 a { color: #050505; }
.blog-related .related-articles .rta-post h5 a:hover { color: #cd2122; }
.blog-cat-count { color: #9a9a9a; }

/* ---- Comments ---- */
.blog-comments { margin-top: 50px; padding-top: 30px; border-top: 1px solid #ececec; }
.blog-comments__title { margin-bottom: 25px; }
.blog-comments__empty { color: #9a9a9a; }
.blog-comments__list, .blog-comment__children { list-style: none; margin: 0; padding: 0; }
.blog-comment__children { margin-left: 34px; margin-top: 20px; }
.blog-comment { display: flex; gap: 14px; margin-bottom: 24px; }
.blog-comment__avatar img, .blog-avatar {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
    background: #cd2122; color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-family: Montserrat, sans-serif;
}
.blog-comment__main { flex: 1; min-width: 0; }
.blog-comment__meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.blog-comment__author { font-weight: 600; color: #050505; }
.blog-comment__date { color: #9a9a9a; font-size: 12px; }
.blog-comment__body { color: #535353; }
.blog-comment__actions { margin-top: 6px; }
.blog-comment__action {
    background: none; border: 0; padding: 0; margin-right: 14px;
    color: #9a9a9a; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer;
}
.blog-comment__action:hover { color: #cd2122; }
.blog-comment-form { margin-top: 30px; }
.blog-comment-form textarea { border: 1px solid #ececec; box-shadow: none; resize: vertical; }
.blog-comment-form__replying { color: #cd2122; font-size: 13px; }
.blog-comment-form__footer { margin-top: 12px; }
.blog-comment-form--guest { color: #9a9a9a; }

/* ---- Header account badge ---- */
.blog-nav-badge {
    display: inline-block; min-width: 18px; padding: 0 5px;
    background: #cd2122; color: #fff; border-radius: 9px;
    font-size: 11px; line-height: 18px; text-align: center;
}
/* Logged-in account dropdown in the top bar (mirrors the theme's language pPanel). */
.site-header-top-wrapper .topnav--lang .languages.drop { position: relative; }
.site-header-top-wrapper .topnav--lang .languages.drop a.topnav-item .topnav-item--text { text-transform: uppercase; }
.site-header-top-wrapper .topnav--lang .languages.drop .blog-account-menu {
    position: absolute; top: 100%; right: 0; z-index: 1200; display: none;
    list-style: none; margin: 0; padding: 10px 0; min-width: 190px;
    background: #f9f9f9; box-shadow: 0 0 5px rgba(0,0,0,0.4); border-radius: 2px; text-align: left;
}
.site-header-top-wrapper .topnav--lang .languages.drop:hover .blog-account-menu { display: block; }
.site-header-top-wrapper .blog-account-menu li { margin: 0; }
.site-header-top-wrapper .blog-account-menu li a {
    display: block; padding: 7px 16px; font-size: 11px; color: #222;
    text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.site-header-top-wrapper .blog-account-menu li a:hover { color: #323232; background: rgba(0,0,0,0.04); }

/* Sidebar Featured Posts keep the square 54x54 crop look. */
.latest_posts.style3 .lp-post img { object-fit: cover; }

/* Post/account hero titles display in caps (matches the original theme look). */
.page-subheader .subheader-maintitle { text-transform: uppercase; }

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .blog-comment__children { margin-left: 16px; }
    .blog-article-nav .text-right { text-align: left !important; margin-top: 12px; }
}
/* ---- Account area: sidebar ---- */
.account-nav { background: #fff; border: 1px solid #ececec; border-radius: 8px; padding: 20px 18px; margin-bottom: 30px; box-shadow: 0 6px 18px rgba(0, 0, 0, .04); }
.account-nav .widgettitle { margin: 0 0 16px; font-family: Montserrat, sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #050505; padding-bottom: 12px; border-bottom: 1px solid #ececec; position: relative; }
.account-nav .widgettitle::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 36px; height: 2px; background: #cd2122; }
.account-nav__user { display: flex; gap: 12px; align-items: center; padding: 12px; margin-bottom: 16px; background: #fafafa; border: 1px solid #f0f0f0; border-radius: 8px; }
.account-nav__user .blog-avatar { width: 40px; height: 40px; font-size: 14px; flex-shrink: 0; }
.account-nav__user-meta { min-width: 0; flex: 1; }
.account-nav__user-meta strong { display: block; color: #050505; font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-nav__user-meta small { display: block; color: #9a9a9a; font-size: 10.5px; line-height: 1.3; margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-nav__menu { list-style: none; margin: 0; padding: 0; }
.account-nav__menu .cat-item { margin: 0; border-bottom: 1px solid #f4f4f4; }
.account-nav__menu .cat-item:last-of-type { border-bottom: 0; }
.account-nav__menu a { display: flex; align-items: center; gap: 11px; padding: 10px 9px; color: #535353; font-size: 13.5px; font-weight: 600; border-radius: 6px; }
.account-nav__menu a i { width: 17px; color: #9a9a9a; font-size: 14px; text-align: center; flex-shrink: 0; transition: color .12s ease; }
.account-nav__menu a:hover { color: #cd2122; background: #fafafa; text-decoration: none; }
.account-nav__menu a:hover i { color: #cd2122; }
.account-nav__menu .is-active > a { color: #cd2122; background: #fdf1f1; }
.account-nav__menu .is-active > a i { color: #cd2122; }
.account-nav__count { margin-left: auto; min-width: 18px; padding: 0 5px; background: #cd2122; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.account-nav__menu a:hover .account-nav__count { background: #a41a1b; }

/* ---- Account area: shared ---- */
.account-form .form-group { margin-bottom: 18px; }
.account-form label { font-weight: 600; color: #050505; }
.account-form--narrow { max-width: 520px; }
.account-form__links { margin-top: 18px; }
.account-form__links .sep { margin: 0 8px; color: #bababa; }
.account-head-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-bottom: 22px; }
.account-head-row .page-title { margin: 0; }
.account-head-row .btn { margin: 0; }

/* ---- Stat cards ---- */
.account-stats { margin-top: 6px; }
.account-stat { display: flex; align-items: center; gap: 15px; text-align: left; background: #fff; border: 1px solid #ececec; border-radius: 8px; padding: 16px; margin-bottom: 20px; box-shadow: 0 6px 18px rgba(0, 0, 0, .04); }
.account-stat__icon { width: 46px; height: 46px; border-radius: 12px; background: #fdf0f0; color: #cd2122; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.account-stat__body { min-width: 0; }
.account-stat__num { display: block; font-family: Montserrat, sans-serif; font-size: 24px; font-weight: 700; line-height: 1.15; color: #050505; }
.account-stat__label { display: block; color: #9a9a9a; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* ---- Quick actions ---- */
.account-quick { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 26px; }
.account-quick a {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
    background: #fff; border: 1px solid #ececec; border-radius: 8px;
    color: #535353; font-size: 13px; font-weight: 600; transition: all .12s ease;
}
.account-quick a i { color: #cd2122; font-size: 13px; }
.account-quick a:hover { border-color: #cd2122; color: #cd2122; text-decoration: none; box-shadow: 0 4px 12px rgba(205, 33, 34, .08); }

/* ---- Dashboard panels ---- */
.account-panel { background: #fff; border: 1px solid #ececec; border-radius: 8px; margin-bottom: 24px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .04); }
.account-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #ececec; background: #fafafa; }
.account-panel__head h3 { margin: 0; font-family: Montserrat, sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #050505; display: flex; align-items: center; gap: 9px; }
.account-panel__head h3 i { color: #cd2122; font-size: 14px; }
.account-panel__link { font-size: 12.5px; font-weight: 600; color: #cd2122; white-space: nowrap; }
.account-panel__link:hover { color: #a41a1b; text-decoration: underline; }
.account-panel__body { padding: 2px 18px 16px; }
.account-panel__empty { padding: 30px 18px; text-align: center; color: #9a9a9a; font-size: 14px; }
.dash-article { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid #f1f1f1; }
.dash-article:last-child { border-bottom: 0; }
.dash-article__thumb { width: 64px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #f0f0f0; color: #c3c3c3; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.dash-article__body { flex: 1; min-width: 0; }
.dash-article__title { display: block; color: #050505; font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-article__title:hover { color: #cd2122; }
.dash-article__meta { color: #9a9a9a; font-size: 12px; margin-top: 2px; }
.dash-article__side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.dash-article__side .badge { white-space: nowrap; }
.dash-article__edit { font-size: 12px; font-weight: 600; color: #cd2122; }
.dash-article__edit:hover { text-decoration: underline; color: #a41a1b; }
.dash-note { display: flex; gap: 12px; align-items: flex-start; padding: 13px 18px; border-bottom: 1px solid #f1f1f1; }
.dash-note:last-child { border-bottom: 0; }
.dash-note.is-unread { background: #fff9f9; }
.dash-note__ico { width: 30px; height: 30px; border-radius: 50%; background: #f1f1f1; color: #6d6d6d; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.dash-note.is-unread .dash-note__ico { background: #f9e3e3; color: #cd2122; }
.dash-note__text { flex: 1; min-width: 0; color: #535353; font-size: 13.5px; line-height: 1.45; }
.dash-note__text a { color: #050505; font-weight: 600; }
.dash-note__text a:hover { color: #cd2122; }
.dash-note__time { color: #9a9a9a; font-size: 11.5px; white-space: nowrap; padding-top: 2px; }

/* ---- Welcome header ---- */
.dash-welcome { align-items: flex-end; margin-bottom: 20px; }
.dash-welcome__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #cd2122; margin-bottom: 8px; }
.dash-welcome__title { margin: 0 0 6px; font-family: Montserrat, sans-serif; font-size: 30px; font-weight: 700; line-height: 1.2; color: #050505; }
.dash-welcome__sub { color: #9a9a9a; margin: 0; font-size: 14px; }
.dash-welcome__sub strong { color: #535353; }
.dash-welcome .btn i { margin-right: 7px; }

/* ---- Tables ---- */
.table.account-table { background: #fff; border: 1px solid #ececec; border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.table.account-table thead th {
    border-top: 0; border-bottom: 1px solid #ececec; background: #fafafa;
    font-family: Montserrat, sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
    color: #535353; padding: 13px 16px; vertical-align: middle; white-space: nowrap;
}
.table.account-table td { padding: 13px 16px; vertical-align: middle; border-top: 1px solid #f1f1f1; }
.table.account-table tbody tr:hover { background: #fafafa; }
.account-table__actions { white-space: nowrap; text-align: right; }
.account-table__actions > * { margin-right: 12px; }
.account-table__actions .btn { margin: 0; }
.account-table__actions a { color: #cd2122; font-weight: 600; font-size: 13px; white-space: nowrap; }
.account-table__actions a:hover { color: #a41a1b; text-decoration: underline; }
.account-table__actions form { display: inline-block; margin: 0; }
.link-danger { background: none; border: 0; padding: 0; color: #cd2122; cursor: pointer; font-weight: 600; font-size: 13px; }
.link-danger:hover { color: #a41a1b; text-decoration: underline; }
.link-action { background: none; border: 0; padding: 0; color: #1b3251; cursor: pointer; text-decoration: underline; }
.link-action:hover { color: #cd2122; }

/* ---- Soft status badges ---- */
.account-page .badge { font-weight: 700; padding: .4em .75em; border-radius: 20px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.account-page .badge-success { color: #1a7f37; background: #e5f6ec; }
.account-page .badge-secondary { color: #5b6472; background: #eef1f3; }
.account-page .badge-warning { color: #8a6d1d; background: #fdf3dc; }
.account-page .badge-info { color: #0f6b97; background: #e3f2fb; }
.account-page .badge-dark { color: #3a3f47; background: #e8eaec; }
.account-page .badge-danger { color: #b02a2a; background: #fbe9ec; }

/* ---- Filter tabs (segmented) ---- */
.account-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.account-tabs a { display: block; padding: 7px 15px; border: 1px solid #ececec; border-radius: 20px; background: #fff; color: #535353; font-size: 12.5px; font-weight: 600; }
.account-tabs a:hover { border-color: #cd2122; color: #cd2122; text-decoration: none; }
.account-tabs .is-active a { background: #cd2122; border-color: #cd2122; color: #fff; }

/* ---- Notifications & comments lists ---- */
.account-notifications { list-style: none; padding: 0; margin: 0; }
.account-notifications li { border-bottom: 1px solid #ececec; padding: 14px 0; }
.account-notifications li.is-unread { border-left: 3px solid #cd2122; padding-left: 14px; background: #fff8f8; }
.account-notifications small { display: block; color: #9a9a9a; margin-top: 3px; font-size: 12px; }
.account-comments { list-style: none; padding: 0; margin: 0; }
.account-comments li { border-bottom: 1px solid #ececec; padding: 16px 0; }
.account-comments li:last-child { border-bottom: 0; }
.account-comments__meta { color: #9a9a9a; font-size: 13px; margin-bottom: 6px; }
.account-comments__body { color: #535353; margin-bottom: 8px; }

/* ---- Profile ---- */
.account-profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 25px; }
.account-profile-head .blog-avatar { width: 96px; height: 96px; font-size: 34px; }

/* ---- Media library ---- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.media-grid__item { background: #fff; border: 1px solid #ececec; border-radius: 8px; padding: 10px; margin: 0; }
.media-grid__item img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; margin-bottom: 9px; background: #f6f6f6; }
.media-grid__item figcaption strong { display: block; font-size: 12px; word-break: break-all; }
.media-grid__item figcaption small { display: block; color: #9a9a9a; margin-bottom: 8px; }
.media-grid__actions { margin-top: 8px; }
.media-grid__actions form { margin: 8px 0 0; }
.saved-article { position: relative; }
.saved-article__remove { margin: -10px 0 30px; }

/* ---- Auth pages (sign in / register / forgot) ---- */
.auth-wrap { max-width: 470px; margin: 0 auto; }
.auth-card { background: #fff; border: 1px solid #ececec; border-radius: 10px; padding: 34px 34px 30px; box-shadow: 0 12px 34px rgba(0, 0, 0, .07); }
.auth-card .page-title { font-size: 26px; margin: 0 0 8px; padding-bottom: 16px; border-bottom: 0; }
.auth-card .page-title::after { content: ''; display: block; width: 46px; height: 3px; background: #cd2122; margin-top: 12px; }
.auth-card .login-intro, .auth-card .account-intro { color: #8c8c8c; font-size: 14px; margin-bottom: 22px; }
.auth-card label { font-size: 13.5px; }
.auth-card .form-check { margin: 2px 0 18px; }
.auth-card .form-check-label { color: #535353; font-weight: 600; font-size: 13.5px; }
.auth-card .btn-fullcolor { width: 100%; padding: 12px 20px; font-size: 14px; }
.auth-card .account-form__links { font-size: 13.5px; }

/* ---- Empty state ---- */
.blog-empty { padding: 46px 24px; text-align: center; background: #fff; border: 1px dashed #d9d9d9; border-radius: 10px; }
.blog-empty::before { content: '\f15c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 30px; color: #d5d5d5; display: block; margin-bottom: 12px; }
.blog-empty--title { font-family: Montserrat, sans-serif; font-size: 18px; color: #050505; margin: 0 0 6px; }
.blog-empty--message { color: #9a9a9a; margin: 0; font-size: 14px; }

/* ---- Admin dashboard quick links ---- */
.admin-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 28px; }
.admin-links .btn { margin: 0; }

/* ---- Admin dashboard ---- */
.account-stat--blue .account-stat__icon { background: #eaf3fb; color: #2b7cd3; }
.account-stat--green .account-stat__icon { background: #eaf7f0; color: #2e9e5b; }
.account-stat--amber .account-stat__icon { background: #fdf6e3; color: #c98a00; }

.admin-dash-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.admin-dash-strip__item { background: #fff; border: 1px solid #ececec; border-radius: 8px; padding: 15px 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .04); }
.admin-dash-strip__icon { width: 42px; height: 42px; border-radius: 12px; background: #f5f5f5; color: #535353; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.admin-dash-strip__item--red .admin-dash-strip__icon { background: #fdf0f0; color: #cd2122; }
.admin-dash-strip__item--green .admin-dash-strip__icon { background: #eaf7f0; color: #2e9e5b; }
.admin-dash-strip__item--amber .admin-dash-strip__icon { background: #fdf6e3; color: #c98a00; }
.admin-dash-strip__num { display: block; font-family: Montserrat, sans-serif; font-size: 22px; font-weight: 700; line-height: 1.15; color: #050505; }
.admin-dash-strip__label { display: block; color: #9a9a9a; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

.admin-panel { background: #fff; border: 1px solid #ececec; border-radius: 10px; padding: 20px; margin-bottom: 26px; }
.admin-panel__head { margin: 0 0 14px; font-family: Montserrat, sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #050505; display: flex; align-items: center; gap: 8px; }
.admin-panel__head i { color: #cd2122; font-size: 14px; }
.admin-panel__count { margin-left: auto; background: #f2f2f2; color: #050505; border-radius: 20px; padding: 1px 10px; font-size: 12px; font-weight: 700; line-height: 1.7; }
.admin-panel .account-table { margin: 0; }
.admin-panel .account-table tbody td { vertical-align: middle; }
.admin-panel .account-table thead th { font-size: 12px; }
.cat-count { display: inline-block; min-width: 28px; text-align: center; background: #fff7f7; color: #cd2122; border: 1px solid #f2d4d4; border-radius: 20px; padding: 1px 8px; font-size: 13px; font-weight: 700; }
.admin-form-actions { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 992px) {
    .admin-cat-form { position: sticky; top: 20px; }
}

.admin-attention__row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid #f0f0f0; color: #050505; }
.admin-attention__row:first-of-type { border-top: 0; }
.admin-attention__row:hover strong { color: #cd2122; }
.admin-attention__icon { width: 40px; height: 40px; border-radius: 10px; background: #f5f5f5; color: #535353; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.admin-attention__body { flex: 1; min-width: 0; }
.admin-attention__body strong { display: block; font-size: 14px; }
.admin-attention__body small { color: #9a9a9a; }
.admin-attention__count { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 16px; color: #9a9a9a; min-width: 34px; text-align: right; }
.admin-attention__count.is-hot { color: #cd2122; }

.admin-actions { display: grid; gap: 10px; }
.admin-actions .btn { margin: 0; }

.admin-workflow { margin-bottom: 26px; }
.admin-workflow--inpanel { margin-bottom: 0; margin-top: 6px; }
.admin-workflow--inpanel .admin-workflow__legend { gap: 10px 16px; }
.admin-workflow__bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #f0f0f0; }
.admin-workflow__bar span { height: 100%; min-width: 0; }
.admin-workflow__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.admin-workflow__legend span { font-size: 12px; color: #535353; display: inline-flex; align-items: center; gap: 6px; }
.admin-workflow__legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.admin-popular { margin: 0; padding: 0; list-style: none; }
.admin-popular__row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #f0f0f0; color: #050505; }
.admin-popular__row:first-child { border-top: 0; }
.admin-popular__rank { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 14px; color: #cd2122; width: 18px; text-align: center; flex-shrink: 0; }
.admin-popular__body { flex: 1; min-width: 0; }
.admin-popular__body strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-popular__body strong:hover { color: #cd2122; }
.admin-popular__track { display: block; height: 5px; border-radius: 999px; background: #f0f0f0; margin-top: 6px; overflow: hidden; }
.admin-popular__track span { display: block; height: 100%; background: #cd2122; border-radius: 999px; }
.admin-popular__views { color: #9a9a9a; font-size: 12px; white-space: nowrap; }

@media (max-width: 767px) {
    .admin-dash-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---- Wider account/admin content on desktop (fill the page) ---- */
@media (min-width: 1200px) {
    .account-page .hg_section > .container,
    .admin-page .hg_section > .container {
        max-width: 1360px;
    }
}

/* ---- Content-column section headings (accounts + admin) ---- */
.account-page .widgettitle, .admin-page .widgettitle {
    font-family: Montserrat, sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
    color: #050505; margin: 4px 0 18px; padding-bottom: 12px; position: relative; border-bottom: 1px solid #ececec;
}
.account-page .widgettitle::after, .admin-page .widgettitle::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 36px; height: 2px; background: #cd2122; }
/* ---- Article editor (Summernote) ---- */
.account-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.article-editor__title-row { margin-bottom: 18px; }
.article-editor__title { font-family: Montserrat, sans-serif; font-size: 26px; font-weight: 700; line-height: 1.4; color: #050505; padding: 14px 18px; border-radius: 8px; border-color: #d9d9d9; height: auto; box-shadow: none; }
.article-editor__title:focus { border-color: #cd2122; box-shadow: 0 0 0 3px rgba(205, 33, 34, .08) !important; }
.article-editor .form-control:focus { border-color: #cd2122; box-shadow: 0 0 0 3px rgba(205, 33, 34, .08) !important; }
.editor-cols { margin-top: 22px; }

.editor-box { background: #fff; border: 1px solid #ececec; border-radius: 10px; overflow: hidden; margin-bottom: 24px; }
.editor-box__head { margin: 0; padding: 14px 22px; border-bottom: 1px solid #ececec; background: #fafafa; font-family: Montserrat, sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #050505; display: flex; align-items: center; gap: 8px; }
.editor-box__head i { color: #cd2122; font-size: 14px; }
.editor-box__body { padding: 22px; }
.editor-box label { font-weight: 600; color: #050505; font-size: 13px; }
.editor-box .form-group { margin-bottom: 20px; }
.editor-box .form-group:last-child { margin-bottom: 0; }

.article-editor__textarea { display: none; }
.editor-hint { display: block; color: #9a9a9a; font-size: 12.5px; line-height: 1.5; margin-top: 6px; }
.editor-hint strong { color: #535353; }
.note-editor.note-frame { border-color: #ececec; border-radius: 10px; }
.note-editor.note-frame .note-toolbar { background: #fafafa; border-bottom: 1px solid #ececec; border-radius: 10px 10px 0 0; padding: 10px 12px; }
.note-editor.note-frame .note-editing-area .note-editable { background: #fff; color: #050505; font-size: 15px; line-height: 1.7; padding: 20px; }
.note-editor.note-frame .note-editing-area .note-editable img { max-width: 100%; height: auto; }
.note-editor .note-btn { background: #fff; border-color: #e2e2e2; color: #454545; }
.note-editor .note-btn:hover, .note-editor .note-btn:focus { background: #fff; border-color: #cd2122; color: #cd2122; }
.note-editor .note-btn.active { background: #cd2122; border-color: #cd2122; color: #fff; }

.editor-publish { background: #fff; border: 1px solid #ececec; border-top: 3px solid #cd2122; border-radius: 10px; padding: 22px; margin-bottom: 24px; }
.editor-publish .widgettitle { margin-top: 0; }
.editor-actions { display: flex; gap: 8px; margin-top: 22px; }
.editor-actions .btn { margin: 0; flex: 1 1 auto; }
.editor-featured__preview { margin: 0 0 14px; }
.editor-featured__preview i { display: none; }
.editor-featured__preview img { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid #ececec; }
.editor-featured__preview img[hidden] { display: none; }
.editor-featured__preview img[hidden] + i { display: block; font-size: 28px; color: #d0d0d0; padding: 32px 0; text-align: center; }
.editor-revisions { margin-top: 30px; }
.editor-revisions .account-table th { font-size: 11px; }

@media (max-width: 575.98px) {
    .article-editor__title { font-size: 21px; }
    .editor-box__head { padding: 12px 16px; }
    .editor-box__body { padding: 16px; }
    .editor-publish { padding: 16px; }
}

/* ---- Pagination (original theme / pajinate markup) ---- */
.pagination-nav .pagination { margin: 40px 0 0; padding: 10px 0; }
.pagination a.page_link { margin: 0 2px; }
.pagination a.no_more { opacity: .3; pointer-events: none; }
.pagination .ellipse { display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center; color: rgba(0, 0, 0, .35); }

/* ---- Theme form controls (replace Bootstrap primary blue) ---- */
.form-control:focus,
.sub-form-control:focus {
    border-color: #cd2122 !important;
    box-shadow: 0 0 0 0.2rem rgba(205, 33, 34, 0.15) !important;
    outline: none;
}
.form-check-input { accent-color: #cd2122; }

/* ---- Theme info + primary tints (replace Bootstrap primary blue) ---- */
.alert-info { color: #4a4a4a; background-color: #f4f4f4; border-color: #e2e2e2; }

/* ---- Account area responsive ---- */
@media (max-width: 991.98px) {
    .account-nav { margin-bottom: 24px; }
}
@media (max-width: 767.98px) {
    .account-stat__num { font-size: 20px; }
    .account-stat__icon { width: 40px; height: 40px; font-size: 15px; border-radius: 10px; }
    .account-stat { padding: 13px; gap: 12px; }
    .dash-article__thumb { display: none; }
    .dash-article { gap: 10px; padding: 11px 14px; }
    .auth-card { padding: 26px 22px 24px; }
    .table.account-table thead { display: none; }
    .table.account-table, .table.account-table tbody, .table.account-table tr, .table.account-table td { display: block; width: 100%; }
    .table.account-table tr { border-top: 1px solid #f1f1f1; padding: 8px 4px; }
    .table.account-table tr:first-child { border-top: 0; }
    .table.account-table td { border: 0; padding: 5px 14px; }
    .account-table__actions { text-align: left; padding-top: 6px !important; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .account-table__actions { display: flex; flex-wrap: wrap; gap: 6px; }
}

/* ---- Account/Admin menu in the mobile nav drawer ---- */
#menu-main-menu > li.item-zn-res-account { display: none; }
#zn-res-menu li.item-zn-res-account { margin-top: 6px; border-top: 2px solid #ececec; }
#zn-res-menu li.item-zn-res-account > a { color: #cd2122 !important; font-weight: 700; }
#zn-res-menu li.item-zn-res-account li a { text-transform: none; font-size: 13px; color: #333; }
#zn-res-menu li.zn-res-account-name a { font-weight: 600; font-size: 12.5px; color: #050505 !important; }
