/* v0.9.136 — category-driven related posts inside department learning section */
.eb136-related-posts-column{width:40%!important;max-width:40%!important;flex:0 0 calc(40% - 9px)!important}
.eb136-related-posts-column>.elementor-widget-wrap{height:100%!important;padding:0!important;display:flex!important;align-items:stretch!important;background:transparent!important;border:0!important;box-shadow:none!important}
.eb136-related-posts-column .elementor-widget-eb_department_related_posts,
.eb136-related-posts-column .elementor-widget-container{width:100%!important;height:100%!important}
.eb136-dept-posts{--eb136-accent:#0e9f61;height:100%;padding:18px;border:1px solid #dce9e1;border-radius:22px;background:#fff;box-shadow:0 14px 30px rgba(16,70,46,.055);display:flex;flex-direction:column;gap:13px;color:#17322b}
.eb136-dept-posts__head{display:grid;gap:3px;border-bottom:1px solid #edf2ef;padding-bottom:11px}
.eb136-dept-posts__head>span{font-size:11px;font-weight:850;color:var(--eb136-accent)}
.eb136-dept-posts__head h3{margin:0!important;font-size:19px;line-height:1.55;font-weight:950;color:#17322b}
.eb136-dept-posts__head small{font-size:10.5px;color:#87958d}
.eb136-dept-posts__list{display:grid;gap:10px}
.eb136-dept-post{display:grid;grid-template-columns:82px minmax(0,1fr);align-items:stretch;overflow:hidden;border:1px solid #e5ece8;border-radius:14px;background:#fff;min-height:92px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.eb136-dept-post:hover{transform:translateY(-2px);border-color:#cfe5d9;box-shadow:0 9px 22px rgba(12,82,54,.08)}
.eb136-dept-post--featured{grid-template-columns:1fr;min-height:0}
.eb136-dept-post__thumb{display:block;width:100%;height:100%;min-height:92px;overflow:hidden;background:linear-gradient(135deg,#edf8f2,#f8fbf9)}
.eb136-dept-post--featured .eb136-dept-post__thumb{height:150px;min-height:130px}
.eb136-dept-post__thumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.eb136-dept-post__thumb--empty{display:flex;align-items:center;justify-content:center;color:var(--eb136-accent);font-size:27px}
.eb136-dept-post__copy{min-width:0;padding:10px 11px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px}
.eb136-dept-post--featured .eb136-dept-post__copy{padding:12px 13px 13px}
.eb136-dept-post__copy time{font-size:9.5px;color:#98a49d}
.eb136-dept-post__title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-decoration:none!important;font-size:15px;line-height:1.7;font-weight:900;color:#17322b}
.eb136-dept-post__copy p{margin:0!important;font-size:11px;line-height:1.8;color:#718078}
.eb136-dept-post__more{margin-top:auto;text-decoration:none!important;font-size:10.5px;font-weight:850;color:var(--eb136-accent)!important}
.eb136-dept-posts__archive{display:inline-flex;align-self:flex-start;margin-top:auto;padding:8px 12px;border:1px solid #d7e9de;border-radius:999px;text-decoration:none!important;font-size:11px;font-weight:900;color:var(--eb136-accent)!important;background:#f8fcfa}
.eb136-dept-posts__empty{padding:22px 14px;border:1px dashed #d9e6df;border-radius:14px;text-align:center;font-size:12px;line-height:1.9;color:#76847c;background:#fbfdfc}

@media(max-width:767px){
  html body.eb088-department-premium-active .eb086-learning>.elementor-container{display:flex!important;flex-direction:column!important;gap:8px!important}
  .eb136-related-posts-column{width:100%!important;max-width:100%!important;flex:0 0 100%!important}
  .eb136-related-posts-column>.elementor-widget-wrap{margin-top:8px!important;padding:0!important}
  .eb136-dept-posts{padding:13px;border-radius:16px;gap:10px}
  .eb136-dept-posts__head{text-align:center;padding-bottom:9px}
  .eb136-dept-posts__head h3{font-size:18px;line-height:1.65}
  .eb136-dept-post{grid-template-columns:90px minmax(0,1fr);min-height:98px;border-radius:13px}
  .eb136-dept-post--featured{grid-template-columns:1fr}
  .eb136-dept-post--featured .eb136-dept-post__thumb{height:170px;min-height:150px}
  .eb136-dept-post__title{font-size:15px;line-height:1.7}
  .eb136-dept-posts__archive{align-self:center}
}

/* v0.9.175: preserve portrait/landscape content; Elementor controls own sizing. */
.eb136-dept-posts .eb136-dept-post:not(.eb136-dept-post--featured){grid-template-columns:var(--eb136-small-image,112px) minmax(0,1fr);min-height:0}
.eb136-dept-posts .eb136-dept-post__thumb{min-width:0;min-height:0;box-sizing:border-box}
.eb136-dept-posts .eb136-dept-post:not(.eb136-dept-post--featured) .eb136-dept-post__thumb{height:var(--eb136-small-image,112px);align-self:start}
.eb136-dept-post--featured .eb136-dept-post__thumb{height:220px;min-height:0}
.eb136-dept-posts .eb136-dept-post__thumb > img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:var(--eb136-image-fit,contain);object-position:center;margin:0}
@media(max-width:767px){.eb136-dept-posts{--eb136-small-image:90px}.eb136-dept-post--featured .eb136-dept-post__thumb{height:200px}}
