/* HALI Success Stories Manager – scoped frontend styles */
.hssm-featured,
.hssm-story-grid,
.hssm-pagination,
.hssm-empty,
.hssm-section-title{box-sizing:border-box;width:100%}
.hssm-featured *,
.hssm-story-grid *,
.hssm-pagination *{box-sizing:border-box}

.hssm-featured{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:20px}
.hssm-featured__image{display:block;overflow:hidden;min-height:410px;border-radius:16px;background:#edf3f4}
.hssm-featured__image img{display:block;width:100%;height:100%;min-height:inherit;object-fit:cover;transition:transform .3s ease}
.hssm-featured:hover .hssm-featured__image img{transform:scale(1.015)}
.hssm-placeholder{display:block;width:100%;height:100%;min-height:inherit;background:linear-gradient(135deg,#edf3f4,#dce8eb)}
.hssm-featured__content{min-width:0}
.hssm-featured__category{margin:0 0 14px;color:#005d6d;font-size:15px;font-weight:600;line-height:1.35;text-transform:uppercase}
.hssm-featured__title{margin:0;color:#09283b;font-size:23px;font-weight:700;line-height:1.45}
.hssm-featured__title a{color:inherit;text-decoration:none}
.hssm-featured__excerpt{margin-top:14px;color:#8b9ab3;font-size:15px;font-weight:400;line-height:1.55}
.hssm-featured__excerpt p{margin:0 0 14px}
.hssm-featured__excerpt p:last-child{margin-bottom:0}
.hssm-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin-top:18px;padding:11px 17px;border-radius:999px;background:#00697a;color:#fff;text-decoration:none;font-size:14px;font-weight:500;line-height:1.2;transition:background .2s ease,transform .2s ease,color .2s ease}
.hssm-button img{display:block;width:19px;height:10px;object-fit:contain;filter:brightness(0) invert(1)}
.hssm-button:hover,.hssm-button:focus-visible{background:#0b2c4c;color:#fff;transform:translateY(-1px)}

.hssm-story-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.hssm-story-card{min-width:0}
.hssm-story-card__link{position:relative;display:block;overflow:hidden;border-radius:14px;background:#edf3f4;text-decoration:none;isolation:isolate}
.hssm-story-card__image{display:block;width:100%;height:232px;overflow:hidden;background:#edf3f4}
.hssm-story-card__image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.hssm-story-card__title{position:absolute;z-index:2;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;background:rgba(0,93,109,.88);color:#ffd66b;font-size:15px;font-weight:500;line-height:1.25;text-align:center;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hssm-story-card:hover .hssm-story-card__image img,.hssm-story-card:focus-within .hssm-story-card__image img{transform:scale(1.035)}
.hssm-story-card__link:focus-visible{outline:2px solid #005d6d;outline-offset:3px}

.hssm-section-title{position:relative;margin:0 0 28px;padding:0 0 15px;color:#005d6d;font-size:28px;font-weight:700;line-height:1.25;text-transform:uppercase}
.hssm-section-title::after{content:"";position:absolute;bottom:0;left:0;width:38px;height:4px;border-radius:99px;background:#005d6d}

.hssm-pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin-top:30px}
.hssm-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:9px 16px;border-radius:999px;background:#edf2f4;color:#263b47;text-decoration:none;font-size:16px;font-weight:400;line-height:1;transition:background .2s ease,color .2s ease}
.hssm-pagination .page-numbers.current,.hssm-pagination .page-numbers:hover,.hssm-pagination .page-numbers:focus-visible{background:#00697a;color:#fff}
.hssm-empty{padding:28px;border-radius:12px;background:#edf3f4;color:#244050;text-align:center}

@media(max-width:1024px){
  .hssm-featured{grid-template-columns:1fr;align-items:start}
  .hssm-featured__image{min-height:360px}
  .hssm-story-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .hssm-story-card__image{height:220px}
}

@media(max-width:767px){
  .hssm-featured__image{min-height:260px;border-radius:12px}
  .hssm-featured__title{font-size:20px}
  .hssm-featured__excerpt{font-size:14px}
  .hssm-story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .hssm-story-card__image{height:190px}
  .hssm-story-card__title{min-height:40px;padding:9px 8px;font-size:13px}
  .hssm-section-title{margin-bottom:22px;font-size:24px}
  .hssm-pagination{gap:8px;margin-top:24px}
  .hssm-pagination .page-numbers{min-width:40px;min-height:40px;padding:8px 14px}
}

@media(max-width:480px){
  .hssm-story-grid{grid-template-columns:1fr}
  .hssm-story-card__image{height:280px}
}


/* =========================================================
 * Elementor Custom Font: SVN Gilroy
 * Font files and @font-face remain managed by Elementor.
 * ======================================================= */
.elementor-widget-hssm-featured-story,
.elementor-widget-hssm-related-stories,
.elementor-widget-hssm-story-grid,
.hali-success-empty,
.hali-success-pagination,
.hali-success-related,
.hali-success-stories,
.hali-success-story,
.hali-success-story-card,
.hali-success-story-grid,
.hssm,
.hssm-card,
.hssm-list,
.hssm-related {
    --hssm-font-family: "SVN Gilroy", var(--e-global-typography-text-font-family, sans-serif);
    font-family: var(--hssm-font-family) !important;
}

.elementor-widget-hssm-featured-story *,
.elementor-widget-hssm-related-stories *,
.elementor-widget-hssm-story-grid *,
.hali-success-empty *,
.hali-success-pagination *,
.hali-success-related *,
.hali-success-stories *,
.hali-success-story *,
.hali-success-story-card *,
.hali-success-story-grid *,
.hssm *,
.hssm-card *,
.hssm-list *,
.hssm-related *,
.hali-success-stories button,
.hali-success-stories input,
.hali-success-stories select,
.hali-success-stories textarea,
.hssm button,
.hssm input,
.hssm select,
.hssm textarea {
    font-family: var(--hssm-font-family, "SVN Gilroy", sans-serif) !important;
}
