/* Homepage showcase; intentionally independent of the full widget styles. */
/* Keep room for the news captions, which extend 50px below their images. */
.hm-home-news .latest-news-card-wrapper { margin-bottom: 60px; }
.hm-tools-showcase { padding: 8px 0 20px; clear: both; scroll-margin-top: 90px; }
.hm-tools-surface {
    padding: 24px 30px;
    border: 1px solid #dbe2f1;
    border-radius: 24px;
    background: radial-gradient(ellipse at 100% 0, #e0e7f8 0, transparent 60%), #eef1f9;
}
.hm-tools-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.hm-tools-heading h2 { margin: 0 0 8px; color: #24276f; font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -.7px; }
.hm-tools-heading p { max-width: 620px; margin: 0; color: #5e6880; font-size: 14px; line-height: 1.7; }
.hm-tools-all { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 42px; padding: 9px 16px; border: 1px solid #ced6ed; border-radius: 10px; background: #fff9; color: #2e3192; font-size: 13px; font-weight: 600; transition: background 180ms, border-color 180ms; }
.hm-tools-all span { font-size: 20px; line-height: 1; }
.hm-tools-all:hover { color: #2e3192; background: #fff; border-color: #8193cc; text-decoration: none; }
.hm-tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-tools-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #e0e5f1; border-radius: 16px; background: #fff; box-shadow: 0 4px 10px #273b6b05; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.hm-tools-card:hover, .hm-tools-card:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 28px #263c6f1a; border-color: #9eafd8; text-decoration: none; }
.hm-tools-card:focus-visible, .hm-tools-all:focus-visible { outline: 3px solid #526cbd; outline-offset: 4px; }
.hm-tools-art { display: flex; align-items: center; justify-content: center; height: 140px; padding: 16px 12px 10px; overflow: hidden; border-radius: 15px 15px 0 0; background: linear-gradient(145deg, #edf2ff, #f9faff); }
.hm-tools-preview { display: block; width: 100%; height: auto; max-height: 116px; object-fit: contain; border-radius: 9px; box-shadow: 0 5px 12px #253c7710; }
.hm-tools-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 18px 16px; }
.hm-tools-kind { display: block; color: #6b7794; font-size: 9px; font-weight: 600; margin-bottom: 8px; letter-spacing: 1px; text-transform: uppercase; }
.hm-tools-card h3 { margin: 0 0 10px; color: #252960; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.4px; }
.hm-tools-card p { margin: 0 0 20px; color: #637088; font-size: 13px; line-height: 1.65; }
.hm-tools-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #ebedf5; color: #2e3192; font-size: 12px; font-weight: 600; }
.hm-tools-arrow { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid #e0e5f1; border-radius: 50%; font-size: 18px; font-weight: 400; transition: background 180ms, color 180ms; }
.hm-tools-card:hover .hm-tools-arrow, .hm-tools-card:focus-visible .hm-tools-arrow { background: #2e3192; border-color: #2e3192; color: #fff; }
.hm-tools-halal-lookup .hm-tools-art { background: linear-gradient(145deg, #e8effc, #f4f8ff); }
.hm-tools-search-demo { width: 100%; max-width: 240px; }
.hm-tools-demo-search { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid #bac9ea; border-radius: 9px; background: #fff; box-shadow: 0 0 0 3px #dce5f780; color: #62718d; font-size: 10px; }
.hm-tools-demo-search svg { width: 15px; height: 15px; color: #2e3192; flex: 0 0 15px; }
.hm-tools-demo-cursor { width: 1px; height: 13px; background: #899bc7; }
.hm-tools-demo-result { display: flex; align-items: center; gap: 8px; padding: 10px; margin-top: 7px; background: #fff; border: 1px solid #e1e7f3; border-radius: 8px; box-shadow: 0 4px 9px #3047800a; }
.hm-tools-demo-shield { display: flex; align-items: center; justify-content: center; width: 29px; height: 32px; background: #eef3ff; border-radius: 7px; color: #4554aa; }
.hm-tools-demo-shield svg { width: 20px; height: 20px; }
.hm-tools-demo-result strong { display: block; font-size: 10px; line-height: 1.2; color: #303c73; font-weight: 600; }
.hm-tools-demo-line { display: block; width: 71px; height: 3px; margin-top: 5px; border-radius: 2px; background: #d6dfef; }
.hm-tools-demo-line-short { width: 45px; background: #e6ebf5; }
.hm-tools-demo-check { display: flex; align-items: center; justify-content: center; margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: #eaf6ef; color: #26724c; font-size: 11px; }
.hm-tools-demo-credit { display: block; margin-top: 7px; text-align: center; color: #68768d; font-size: 7px; line-height: 1.3; white-space: nowrap; }
.hm-tools-business-badge .hm-tools-art { background: radial-gradient(ellipse at 50% 70%, #d8e3ff, #f0f4ff 75%); }
.hm-tools-badge-demo { display: grid; grid-template-columns: 49px auto; align-items: center; justify-content: center; gap: 0 9px; width: 100%; max-width: 230px; padding: 14px 9px 11px; border: 1px solid #4454a3; border-radius: 12px; background: linear-gradient(135deg, #374a9e, #272b74); box-shadow: 0 9px 15px #293e7c26; }
.hm-tools-badge-demo img { display: block; border-radius: 50%; background: #fff; }
.hm-tools-demo-business { display: block; color: #d6e1ff; font-size: 9px; line-height: 1.4; }
.hm-tools-badge-demo strong { display: block; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.5; }
.hm-tools-demo-active { display: flex; align-items: center; gap: 4px; color: #e1f8eb; font-size: 8px; line-height: 1.6; }
.hm-tools-demo-active i { width: 4px; height: 4px; border-radius: 50%; background: #81dfad; }
.hm-tools-badge-demo .hm-tools-demo-credit { grid-column: 1 / -1; color: #e0e7ff; font-size: 6.5px; }
@media (max-width: 1199px) {
    .hm-tools-surface { padding: 20px 24px; }
    .hm-tools-grid { gap: 12px; }
    .hm-tools-card-body { padding: 18px 14px 14px; }
    .hm-tools-card h3 { font-size: 17px; }
    .hm-tools-art { height: 124px; padding: 12px 8px 8px; }
    .hm-tools-badge-demo { gap: 0 6px; padding-right: 6px; padding-left: 6px; grid-template-columns: 40px auto; }
    .hm-tools-badge-demo img { width: 40px; height: 40px; }
    .hm-tools-badge-demo strong { font-size: 10px; }
    .hm-tools-badge-demo .hm-tools-demo-credit { font-size: 6px; }
}
@media (max-width: 991px) {
    .hm-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .hm-tools-heading { align-items: flex-start; }
    .hm-tools-heading h2 { font-size: 29px; }
    .hm-tools-all { margin-top: 4px; }
    .hm-tools-card h3 { font-size: 20px; }
    .hm-tools-card-body { padding: 20px; }
    .hm-tools-art { height: 138px; padding: 12px 18px; }
    .hm-tools-preview { max-width: 240px; }
}
@media (max-width: 575px) {
    .hm-tools-showcase { padding: 8px 0 16px; }
    .hm-tools-surface { padding: 16px; border-radius: 18px; }
    .hm-tools-heading { display: block; margin-bottom: 16px; }
    .hm-tools-heading h2 { font-size: 27px; }
    .hm-tools-heading p { font-size: 13px; }
    .hm-tools-all { margin-top: 12px; }
    .hm-tools-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .hm-tools-art { height: 140px; }
    .hm-tools-card-body { padding: 18px; }
    .hm-tools-card p { margin-bottom: 14px; }
    .hm-tools-card h3 { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-tools-card, .hm-tools-arrow, .hm-tools-all { transition: none; }
    .hm-tools-card:hover, .hm-tools-card:focus-visible { transform: none; }
}
