/* Neda Horizon v1.8.0 — Joomla com_content category LIST override.
   Scope restricted to category pages; homepage SP2 and article CSS unchanged. */
.nh-category-page .nh-category-intro{border-right:3px solid var(--nh-accent);gap:10px}
.nh-category-page .nh-category-intro .nh-overline{font-weight:900;color:var(--nh-accent)}
.nh-category-list-redesign{width:100%;max-width:100%;min-width:0}
.nh-category-list-redesign .nh-category-titleblock{padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid #e3eaef}
.nh-category-list-redesign .nh-category-titleblock .nh-overline{color:var(--nh-accent);font-size:11px;font-weight:850}
.nh-category-list-redesign .nh-category-titleblock h1{margin:4px 0 8px;font-size:clamp(23px,2vw,29px);font-weight:900;line-height:1.6;color:#102d43}
.nh-category-list-redesign .nh-category-titleblock p{font-size:12px;color:#597284;margin:0}
.nh-category-page .nh-article-content .category-list{border:0;padding:0}
.nh-category-page .nh-category-list-redesign .nh-category-form{margin:0;padding:0}
.nh-category-page .nh-category-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-height:47px;margin:0 0 16px;padding:10px 12px;border:1px solid #dee8ed;border-radius:11px;background:#fff}
.nh-category-controls .nh-limit-label,.nh-category-controls .nh-category-search-label{font-size:11px;font-weight:800;color:#3a576d}
.nh-category-controls .nh-category-search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.nh-category-controls input[type=search]{border:1px solid #d8e3e9;background:#f8fafb;border-radius:8px;min-width:140px;padding:8px 10px;font:inherit;font-size:12px;flex:1}
.nh-category-controls button{background:var(--nh-navy);color:#fff;border:0;padding:8px 15px;border-radius:7px;font:inherit;font-size:12px;font-weight:800}
.nh-category-controls select{max-width:100%;border:1px solid #d8e3e9;border-radius:7px;background:#fff;color:#18364c;min-width:72px;padding:7px 9px;font-size:12px}
.nh-category-page .nh-category-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.nh-category-page .nh-category-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #dde7ed;border-radius:12px;overflow:hidden;box-shadow:0 5px 18px rgba(14,45,64,.035);transition:box-shadow .2s ease, transform .2s ease}
.nh-category-page .nh-category-card:hover{box-shadow:0 10px 24px rgba(14,45,64,.085);transform:translateY(-2px)}
.nh-category-page .nh-category-cover{display:block;position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(125deg,#16364f,#2b6280);flex:none}
.nh-category-page .nh-category-cover img{width:100%!important;height:100%!important;display:block;object-fit:cover;transition:transform .22s ease}
.nh-category-page .nh-category-card:hover .nh-category-cover img{transform:scale(1.03)}
.nh-category-page .nh-category-cover-missing{display:grid;place-items:center;background:linear-gradient(135deg,#0b273d,#255e75)}
.nh-category-page .nh-category-cover-logo{color:#fff;font-weight:900;font-size:clamp(17px,1.7vw,22px);opacity:.85}
.nh-category-page .nh-category-card-body{padding:14px 15px 16px;display:flex;flex-direction:column;flex:1;gap:9px}
.nh-category-page .nh-category-card-meta{display:flex;align-items:center;gap:12px;justify-content:space-between;font-size:10px;color:#6c8394;font-weight:700}
.nh-category-page .nh-category-card-meta span{font-weight:800;color:var(--nh-accent)}
.nh-category-page .nh-category-card h2{font-size:clamp(13px,1.07vw,15px)!important;line-height:1.85;font-weight:850;margin:0;min-height:50px;color:var(--nh-navy);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nh-category-page .nh-category-card h2 a{color:inherit;text-decoration:none}
.nh-category-page .nh-category-card h2 a:hover{color:var(--nh-accent)}
.nh-category-page .nh-category-card-body p{font-size:11.5px;line-height:1.9;color:#597082;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nh-category-page .nh-category-card .nh-category-readmore{margin-top:auto;align-self:flex-start;color:var(--nh-accent);font-size:11px;font-weight:850;padding-top:4px;text-decoration:none}
.nh-category-page .nh-category-empty{padding:35px 15px;background:#fff;border-radius:10px;text-align:center;color:#536c7d}
/* Render Joomla native pagination horizontally and limit to sensible wrapping. */
.nh-category-page .nh-category-pages{margin:24px 0 0;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #e0e8ed;border-radius:10px;padding:14px 17px}
.nh-category-page .nh-category-page-counter{font-size:11px;font-weight:700;color:#5c7384}
.nh-category-page .nh-category-page-links{min-width:0;max-width:100%}
.nh-category-page .nh-category-page-links .pagination{display:flex!important;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-start;margin:0;padding:0;max-width:100%;list-style:none}
.nh-category-page .nh-category-page-links .pagination li{float:none!important;display:list-item;margin:0;padding:0;list-style:none}
.nh-category-page .nh-category-page-links .pagination :is(a,span){display:grid;place-items:center;min-width:34px;height:35px;padding:4px 9px;text-align:center;border:1px solid #dce5eb;border-radius:7px;background:#f9fbfc;font-size:12px;text-decoration:none;white-space:nowrap;line-height:1.5;color:#1d4761}
.nh-category-page .nh-category-page-links .pagination a:hover,.nh-category-page .nh-category-page-links .pagination .active :is(a,span){background:var(--nh-navy);color:white;border-color:var(--nh-navy)}
.nh-category-page .nh-category-page-links .pagination .disabled :is(a,span){color:#99aab5;background:#f7f9fa}
.nh-category-page .nh-category-page-links .pagination > li > a{width:auto!important}
.nh-category-page .nh-category-page-links .pagination .pagination-start,.nh-category-page .nh-category-page-links .pagination .pagination-prev,.nh-category-page .nh-category-page-links .pagination .pagination-next,.nh-category-page .nh-category-page-links .pagination .pagination-end{display:list-item}
/* Joomla versions/templates sometimes wrap nav links in a div pagination + ul .*/
.nh-category-page .nh-category-page-links ul{display:flex!important;flex-wrap:wrap;gap:6px;list-style:none!important;margin:0;padding:0}
.nh-category-page .nh-category-page-links li{float:none!important}
@media(max-width:690px){
 .nh-category-page .nh-category-card-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .nh-category-page .nh-category-card-body{padding:12px 13px 15px}
 .nh-category-page .nh-category-card h2{font-size:14px!important;min-height:0}
 .nh-category-page .nh-category-pages{flex-direction:column;align-items:stretch}
 .nh-category-page .nh-category-page-links .pagination{justify-content:center}
}
@media(prefers-reduced-motion:reduce){.nh-category-page .nh-category-card,.nh-category-page .nh-category-cover img{transition:none!important}}
@media print{.nh-category-controls,.nh-category-pages{display:none!important}.nh-category-page .nh-category-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
