/* HybridMag Pro Panel - front-end styles for the added features */

/* ---------- shared grid / column variables (set per device from the Customizer) ---------- */
.hmp-strip,
.hmp-grid { --hmp-c: var(--hmp-c-d, 3); --hmp-gap: 16px; }
@media (max-width: 959px) { .hmp-strip, .hmp-grid { --hmp-c: var(--hmp-c-t, 2); } }
@media (max-width: 599px) { .hmp-strip, .hmp-grid { --hmp-c: var(--hmp-c-m, 1); } }
.hmp-grid { display: grid; grid-template-columns: repeat(var(--hmp-c), minmax(0, 1fr)); gap: var(--hmp-gap); }

/* ---------- image shapes ---------- */
.hmp-ratio-16-9 .hmp-strip__thumb, .hmp-ratio-16-9 .hmp-card__thumb { aspect-ratio: 16 / 9; }
.hmp-ratio-3-2 .hmp-strip__thumb, .hmp-ratio-3-2 .hmp-card__thumb { aspect-ratio: 3 / 2; }
.hmp-ratio-4-3 .hmp-strip__thumb, .hmp-ratio-4-3 .hmp-card__thumb { aspect-ratio: 4 / 3; }
.hmp-ratio-1-1 .hmp-strip__thumb, .hmp-ratio-1-1 .hmp-card__thumb { aspect-ratio: 1 / 1; }
.hmp-strip__thumb, .hmp-card__thumb { display: block; overflow: hidden; background: #e5e7eb; border-radius: 6px; }
.hmp-strip__thumb img, .hmp-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hmp-ratio-auto .hmp-strip__thumb img, .hmp-ratio-auto .hmp-card__thumb img { height: auto; }

/* ---------- posts strip (related posts, archive strip, featured, trending) ---------- */
.hmp-strip { margin: 2rem 0; }
.hmp-strip__title { margin: 0 0 1rem; font-size: 1.35rem; }
.hmp-strip__wrap { position: relative; }
.hmp-strip__viewport { overflow: hidden; }
.hmp-strip__track { display: grid; grid-template-columns: repeat(var(--hmp-c), minmax(0, 1fr)); gap: var(--hmp-gap); }
.hmp-strip__item { min-width: 0; }
.hmp-strip__body { padding-top: .6rem; }
.hmp-strip__cat { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--hybridmag-color-primary, #65bc7b); }
.hmp-strip__post-title { margin: .2rem 0 .3rem; font-size: 1rem; line-height: 1.35; }
.hmp-strip__post-title a { color: inherit; text-decoration: none; }
.hmp-strip__post-title a:hover { color: var(--hybridmag-color-primary, #65bc7b); }
.hmp-strip__date { font-size: .8rem; opacity: .7; }
.hmp-strip__excerpt { margin: .35rem 0 0; font-size: .88rem; opacity: .85; }
.hmp-noimg { min-height: 60px; }

/* swipe / interval */
.hmp-strip--interval .hmp-strip__viewport,
.hmp-strip--manual .hmp-strip__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hmp-strip--interval .hmp-strip__viewport::-webkit-scrollbar,
.hmp-strip--manual .hmp-strip__viewport::-webkit-scrollbar { display: none; }
.hmp-strip--interval .hmp-strip__track,
.hmp-strip--manual .hmp-strip__track { display: flex; gap: var(--hmp-gap); }
.hmp-strip--interval .hmp-strip__item,
.hmp-strip--manual .hmp-strip__item { flex: 0 0 calc((100% - (var(--hmp-c) - 1) * var(--hmp-gap)) / var(--hmp-c)); scroll-snap-align: start; }

/* continuous */
.hmp-strip--continuous .hmp-strip__track { display: flex; width: max-content; animation: hmp-marquee var(--hmp-dur, 40s) linear infinite; }
.hmp-strip--continuous .hmp-strip__item { flex: 0 0 var(--hmp-item-w, 240px); margin-inline-end: var(--hmp-gap); }
.rtl .hmp-strip--continuous .hmp-strip__track { animation-name: hmp-marquee-rtl; }
.hmp-strip--continuous[data-pause="1"]:hover .hmp-strip__track { animation-play-state: paused; }
@keyframes hmp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hmp-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* arrows */
.hmp-strip__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.hmp-strip__arrow:hover { background: rgba(0,0,0,.85); }
.hmp-strip__prev { inset-inline-start: 6px; }
.hmp-strip__next { inset-inline-end: 6px; }
.rtl .hmp-strip__arrow { transform: translateY(-50%) scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  .hmp-strip--continuous .hmp-strip__track { animation: none; }
  .hmp-strip--continuous .hmp-strip__viewport { overflow-x: auto; }
}

/* ---------- post page ---------- */
.hmp-single__image { margin: 0 0 1.25rem; }
.hmp-single__image img { width: 100%; height: auto; display: block; }
.hmp-single__image[class*="hmp-ratio-"]:not(.hmp-ratio-auto) { overflow: hidden; }
.hmp-single__image[class*="hmp-ratio-"]:not(.hmp-ratio-auto) img { height: 100%; object-fit: cover; }
.hmp-single__image.hmp-ratio-16-9 { aspect-ratio: 16 / 9; }
.hmp-single__image.hmp-ratio-3-2 { aspect-ratio: 3 / 2; }
.hmp-single__image.hmp-ratio-4-3 { aspect-ratio: 4 / 3; }
.hmp-single__image.hmp-ratio-1-1 { aspect-ratio: 1 / 1; }
.hmp-single__image figcaption { font-size: .85rem; opacity: .75; padding-top: .4rem; }

.hmp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-size: .875rem; color: var(--hybridmag-color-text-light, #777); margin: .75rem 0 1.25rem; }
.hmp-meta a { color: inherit; text-decoration: none; }
.hmp-meta a:hover { color: var(--hybridmag-color-primary, #65bc7b); }
.hmp-meta__item { display: inline-flex; align-items: center; gap: .45rem; }
.hmp-meta__avatar img { border-radius: 50%; display: block; }
.hmp-meta--sep-dot .hmp-meta__item + .hmp-meta__item::before { content: "\2022"; opacity: .55; }
.hmp-meta--sep-bar .hmp-meta__item + .hmp-meta__item::before { content: "|"; opacity: .45; }
.hmp-meta .hmp-meta__avatar + .hmp-meta__item::before { display: none; }

.hmp-tags { margin: 1.5rem 0; }
.hmp-tags__label { font-weight: 600; margin-inline-end: .35rem; }
.hmp-tags a { display: inline-block; margin: 0 .25rem .3rem 0; padding: .2rem .65rem; border: 1px solid rgba(0,0,0,.15); border-radius: 99px; font-size: .8rem; text-decoration: none; color: inherit; }
.rtl .hmp-tags a { margin: 0 0 .3rem .25rem; }
.hmp-tags a:hover { border-color: var(--hybridmag-color-primary, #65bc7b); color: var(--hybridmag-color-primary, #65bc7b); }

.hmp-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.5rem 0; }
.hmp-share__label { font-weight: 600; }
.hmp-share__btn { display: inline-block; padding: .5rem .95rem; border-radius: 4px; font-size: .85rem; line-height: 1; text-decoration: none; cursor: pointer; border: 1px solid transparent; font-family: inherit; }
.hmp-share--filled .hmp-share__btn { color: #fff; background: #555; }
.hmp-share--filled .hmp-share__facebook { background: #1877f2; }
.hmp-share--filled .hmp-share__x { background: #111; }
.hmp-share--filled .hmp-share__whatsapp { background: #25d366; }
.hmp-share--filled .hmp-share__telegram { background: #229ed9; }
.hmp-share--filled .hmp-share__linkedin { background: #0a66c2; }
.hmp-share--filled .hmp-share__pinterest { background: #e60023; }
.hmp-share--filled .hmp-share__email { background: #6b7280; }
.hmp-share--filled .hmp-share__copy { background: #374151; }
.hmp-share--outline .hmp-share__btn { background: transparent; color: inherit; border-color: currentColor; }
.hmp-share--outline .hmp-share__btn:hover { background: rgba(0,0,0,.06); }
.hmp-share__btn:hover { opacity: .9; }

/* ---------- home builder ---------- */
.hmp-home .site-main { width: 100%; max-width: 100%; }
.hmp-home-section { margin: 0 0 2.5rem; }
.hmp-home-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 1rem; }
.hmp-home-title { margin: 0; font-size: 1.5rem; }
.hmp-home-viewall { font-size: .9rem; font-weight: 600; text-decoration: none; }

/* hero */
.hmp-hero.hmp-strip { margin-top: 0; }
.hmp-hero--full { width: 100vw; max-width: 100vw; margin-inline-start: calc(50% - 50vw); }
.hmp-hero__item { position: relative; height: var(--hmp-hero-h, 480px); overflow: hidden; background: var(--hybridmag-color-tertiary, #272c30); }
.hmp-hero__link { display: block; position: relative; width: 100%; height: 100%; color: #fff; text-decoration: none; }
.hmp-hero__img, .hmp-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hmp-hero__link::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,var(--hmp-hero-ov, .45)); pointer-events: none; }
.hmp-hero__caption { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; display: block; padding: 1.5rem; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }
.hmp-hero__cat { display: inline-block; margin-bottom: .5rem; padding: .2rem .6rem; background: var(--hybridmag-color-primary, #65bc7b); font-size: .72rem; font-weight: 700; text-transform: uppercase; border-radius: 3px; }
.hmp-hero__title { display: block; font-size: clamp(1.2rem, 2.6vw, 2.2rem); font-weight: 700; line-height: 1.25; }
.hmp-hero__excerpt { display: block; margin-top: .5rem; font-size: .95rem; opacity: .9; max-width: 60ch; }
.hmp-hero--slider .hmp-strip__wrap { overflow: hidden; }
.hmp-hero--grid .hmp-hero__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: var(--hmp-hero-h, 480px); }
.hmp-hero--grid .hmp-hero__item { height: auto; min-height: 0; }
.hmp-hero--grid .hmp-hero__item:first-child { grid-row: 1 / 3; grid-column: 1 / 2; }
.hmp-hero--grid .hmp-hero__item:not(:first-child) .hmp-hero__title { font-size: 1rem; }
.hmp-hero--grid .hmp-hero__item:not(:first-child) .hmp-hero__caption { padding: .9rem; }
.hmp-hero--grid .hmp-hero__item:not(:first-child) .hmp-hero__excerpt { display: none; }
@media (max-width: 767px) {
  .hmp-hero--grid .hmp-hero__grid { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .hmp-hero--grid .hmp-hero__item { height: 220px; }
  .hmp-hero--grid .hmp-hero__item:first-child { grid-row: auto; grid-column: auto; height: var(--hmp-hero-h, 300px); }
}

/* categories */
.hmp-cats__card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--hybridmag-color-tertiary, #272c30); color: #fff; text-decoration: none; }
.hmp-cats__img, .hmp-cats__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hmp-cats__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.05)); }
.hmp-cats__card .hmp-cats__name, .hmp-cats__card .hmp-cats__count { position: absolute; z-index: 1; inset-inline: 12px; }
.hmp-cats__card .hmp-cats__name { bottom: 32px; font-weight: 700; font-size: 1.05rem; }
.hmp-cats__card .hmp-cats__count { bottom: 11px; font-size: .8rem; opacity: .85; }
.hmp-cats--pills.hmp-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.hmp-cats--pills .hmp-cats__item { display: inline-flex; gap: .5rem; align-items: center; padding: .45rem 1rem; border-radius: 99px; border: 1px solid rgba(0,0,0,.15); text-decoration: none; color: inherit; }
.hmp-cats--pills .hmp-cats__item:hover { border-color: var(--hybridmag-color-primary, #65bc7b); color: var(--hybridmag-color-primary, #65bc7b); }
.hmp-cats--list.hmp-grid { display: block; }
.hmp-cats--list .hmp-cats__item { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid rgba(0,0,0,.1); text-decoration: none; color: inherit; }
.hmp-cats__item .hmp-cats__count { opacity: .65; font-size: .85em; }

/* cards (latest posts, category blocks) */
.hmp-card { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.hmp-card__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--hybridmag-color-primary, #65bc7b); text-decoration: none; }
.hmp-card__title { margin: .2rem 0; font-size: 1.1rem; line-height: 1.35; }
.hmp-card__title a { color: inherit; text-decoration: none; }
.hmp-card__title a:hover { color: var(--hybridmag-color-primary, #65bc7b); }
.hmp-card__body .hmp-meta { margin: .3rem 0; font-size: .8rem; }
.hmp-card__excerpt { margin: .25rem 0 0; font-size: .92rem; opacity: .85; }
.hmp-card__more { display: inline-block; margin-top: .4rem; font-weight: 600; font-size: .85rem; text-decoration: none; }
.hmp-cards--list.hmp-grid { grid-template-columns: 1fr; }
.hmp-cards--list .hmp-card { flex-direction: row; align-items: flex-start; gap: 1rem; }
.hmp-cards--list .hmp-card__thumb { flex: 0 0 36%; }
.hmp-cards--list .hmp-card__body { flex: 1; min-width: 0; }
.hmp-cards--first_big .hmp-card:first-child { grid-column: 1 / -1; }
@media (max-width: 599px) {
  .hmp-cards--list .hmp-card { flex-direction: column; }
  .hmp-cards--list .hmp-card__thumb { flex: none; width: 100%; }
}
.hmp-catblock { margin-bottom: 2rem; }

.hmp-pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; }
.hmp-pagination .page-numbers { padding: .45rem .8rem; border: 1px solid rgba(0,0,0,.15); border-radius: 4px; text-decoration: none; color: inherit; }
.hmp-pagination .page-numbers.current { background: var(--hybridmag-color-primary, #65bc7b); border-color: transparent; color: #fff; }

.hmp-cta--banner { padding: 2.5rem 1.5rem; text-align: center; border-radius: var(--hmp-radius, 10px); background: var(--hmp-cta-bg, var(--hybridmag-color-tertiary, #272c30)); color: var(--hmp-cta-text, #fff); }
.hmp-cta--banner .hmp-cta__main { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hmp-cta--banner h2 { margin: 0; color: inherit; }
.hmp-cta--banner p { margin: 0 0 .5rem; }
.hmp-cta__btn { display: inline-block; padding: .85rem 1.5rem; border-radius: 12px; background: var(--hmp-accent, var(--hybridmag-color-primary, #65bc7b)); color: var(--hmp-accent-text, #fff); text-decoration: none; font-weight: 700; }

/* ---------- news ticker ---------- */
.hmp-ticker { background: var(--hmp-tk-bg, #f3f4f6); color: var(--hmp-tk-text, #1d2327); font-size: .9rem; line-height: 1.4; position: relative; z-index: 5; }
.hmp-ticker--full .hmp-ticker__inner { padding: 0 16px; }
.hmp-ticker__inner { display: flex; align-items: center; gap: .75rem; min-height: 42px; }
.hmp-ticker__label { flex: 0 0 auto; background: var(--hmp-tk-label-bg, var(--hybridmag-color-primary, #d63638)); color: var(--hmp-tk-label-text, #fff); padding: .35rem .8rem; font-weight: 700; font-size: .8em; text-transform: uppercase; letter-spacing: .03em; border-radius: 3px; }
.hmp-ticker__viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; position: relative; height: 1.7em; }
.hmp-ticker__list { list-style: none; margin: 0; padding: 0; }
.hmp-ticker__item a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.hmp-ticker__item a:hover { text-decoration: underline; }
.hmp-ticker__thumb img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block; }
.hmp-ticker__date { opacity: .7; font-size: .85em; }

.hmp-ticker--marquee .hmp-ticker__viewport { display: flex; align-items: center; }
.hmp-ticker--marquee .hmp-ticker__list { display: flex; width: max-content; animation: hmp-tk-marquee var(--hmp-tk-dur, 40s) linear infinite; }
.hmp-ticker--marquee .hmp-ticker__item { margin-inline-end: 3rem; }
.hmp-ticker--marquee.is-reverse .hmp-ticker__list { animation-direction: reverse; }
.rtl .hmp-ticker--marquee .hmp-ticker__list { animation-name: hmp-tk-marquee-rtl; }
.hmp-ticker.is-paused .hmp-ticker__list,
.hmp-ticker[data-hover="1"]:hover .hmp-ticker__list { animation-play-state: paused; }
@keyframes hmp-tk-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hmp-tk-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

.hmp-ticker--fade .hmp-ticker__item,
.hmp-ticker--slide .hmp-ticker__item { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .5s ease, transform .5s ease; }
.hmp-ticker--slide .hmp-ticker__item { transform: translateY(100%); }
.hmp-ticker .hmp-ticker__item.is-active { opacity: 1; transform: none; }
.hmp-ticker--slide .hmp-ticker__item.is-leaving { opacity: 0; transform: translateY(-100%); }
.hmp-ticker:not(.is-ready).hmp-ticker--fade .hmp-ticker__item:first-child,
.hmp-ticker:not(.is-ready).hmp-ticker--slide .hmp-ticker__item:first-child { opacity: 1; transform: none; }
.hmp-ticker--fade .hmp-ticker__item a,
.hmp-ticker--slide .hmp-ticker__item a { max-width: 100%; }
.hmp-ticker--fade .hmp-ticker__text,
.hmp-ticker--slide .hmp-ticker__text { overflow: hidden; text-overflow: ellipsis; }

.hmp-ticker__btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; font-size: 1rem; line-height: 1; cursor: pointer; opacity: .8; }
.hmp-ticker__btn:hover { opacity: 1; }
.hmp-ticker__pause span { font-size: .6rem; letter-spacing: -1px; }
.rtl .hmp-ticker__btn[data-hmp-tk-prev], .rtl .hmp-ticker__btn[data-hmp-tk-next] { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) {
  .hmp-ticker--marquee .hmp-ticker__list { animation: none; }
  .hmp-ticker--marquee .hmp-ticker__viewport { overflow-x: auto; }
}

/* ---------- footer bottom bar at full screen width ---------- */
body.hmp-footer-bottom-full .hm-footer-bottom .hm-container { max-width: 100%; width: 100%; box-sizing: border-box; padding-left: 20px; padding-right: 20px; }

/* ---------- dark mode (theme adds .hm-dark on <html>) ---------- */
html.hm-dark .hmp-ticker { background: var(--hmp-tk-bg, #1f2428); color: var(--hmp-tk-text, #e5e7eb); }
html.hm-dark .hmp-tags a,
html.hm-dark .hmp-cats--pills .hmp-cats__item,
html.hm-dark .hmp-pagination .page-numbers { border-color: rgba(255,255,255,.25); }
html.hm-dark .hmp-cats--list .hmp-cats__item { border-color: rgba(255,255,255,.15); }
html.hm-dark .hmp-strip__thumb,
html.hm-dark .hmp-card__thumb { background: #2b3035; }
html.hm-dark .hmp-share--outline .hmp-share__btn:hover { background: rgba(255,255,255,.1); }


/* =====================================================================
   Home Builder v2
   ===================================================================== */
body.hmp-home .site-content .content-area.hm-container { max-width: none; width: 100%; padding: 0; }
body.hmp-home .site-content { padding: 0; }
.hmp-inner { max-width: var(--hmp-home-w, 1240px); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.hmp-inner--full { max-width: none; padding: 0; }
.hmp-home-section { margin: 0; }
.hmp-home-section .hmp-strip { margin: 0; }

.hmp-tile-1 { background: var(--hmp-tile1, #DDF0E4); }
.hmp-tile-2 { background: var(--hmp-tile2, #FFE9A8); }
.hmp-tile-3 { background: var(--hmp-tile3, #D9E8F3); }

.hmp-eyebrow { display: block; margin-bottom: .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hmp-accent, var(--hybridmag-color-primary, #65bc7b)); }
.hmp-home-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 0 0 28px; }
.hmp-home-title { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.hmp-home-viewall { padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(0,0,0,.15); text-decoration: none; color: inherit; font-weight: 600; font-size: .9rem; }
.hmp-home-viewall:hover { border-color: var(--hmp-accent, var(--hybridmag-color-primary, #65bc7b)); }

/* hero: intro text + featured card */
.hmp-hero--intro { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hmp-hero--intro .hmp-hero__text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hmp-hero--center { justify-content: center; text-align: center; }
.hmp-hero--center .hmp-hero__text { flex: 0 1 760px; align-items: center; }
.hmp-hero__badge { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 16px; border-radius: 999px; background: var(--hmp-tile1, #E3F1E8); font-size: .85rem; font-weight: 600; }
.hmp-hero--center .hmp-hero__badge { align-self: center; }
.hmp-hero__badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--hmp-accent, var(--hybridmag-color-primary, #65bc7b)); }
.hmp-hero__h1 { margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 1.1; letter-spacing: -.02em; }
.hmp-hero__h1 mark { background: var(--hmp-accent, var(--hybridmag-color-primary, #65bc7b)); color: var(--hmp-accent-text, #fff); padding: 0 .25em; border-radius: 14px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hmp-hero__p { margin: 0; max-width: 540px; font-size: 1.1rem; line-height: 1.6; opacity: .85; }
.hmp-hero__search { display: flex; gap: 10px; width: 100%; max-width: 560px; }
.hmp-hero__search input { flex: 1 1 auto; min-width: 0; height: 54px; padding: 0 20px; border: 1px solid rgba(0,0,0,.15); border-radius: 14px; background: #fff; font-size: 1rem; }
.hmp-hero__search button { height: 54px; padding: 0 26px; border: 0; border-radius: 14px; background: var(--hmp-accent, var(--hybridmag-color-primary, #65bc7b)); color: var(--hmp-accent-text, #fff); font-weight: 700; cursor: pointer; }
.hmp-hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .9rem; }
.hmp-hero--center .hmp-hero__chips { justify-content: center; }
.hmp-hero__chips a { padding: 8px 14px; border: 1px solid rgba(0,0,0,.14); border-radius: 999px; background: rgba(255,255,255,.6); color: inherit; text-decoration: none; }
.hmp-hero__chips a:hover { border-color: var(--hmp-accent, var(--hybridmag-color-primary, #65bc7b)); }

.hmp-feat { flex: 1 1 380px; max-width: 520px; display: block; overflow: hidden; border-radius: 28px; background: var(--hybridmag-color-bg-cl-sep-content, #fff); color: inherit; text-decoration: none; box-shadow: 0 10px 40px rgba(16,40,31,.08); }
.hmp-feat__media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; }
.hmp-feat__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hmp-feat__media--tile svg { opacity: .55; }
.hmp-feat__badge { position: absolute; top: 16px; inset-inline-start: 16px; padding: 8px 14px; border-radius: 999px; background: #10281F; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hmp-feat__body { display: flex; flex-direction: column; gap: 12px; padding: 26px; }
.hmp-feat__cat, .hmp-tcard__cat { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--hmp-accent, var(--hybridmag-color-primary, #65bc7b)); }
.hmp-feat__title { font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
.hmp-feat__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; }
.hmp-feat__by, .hmp-tcard__by { display: inline-flex; align-items: center; gap: 10px; }
.hmp-feat__by i, .hmp-tcard__by i { width: 30px; height: 30px; border-radius: 50%; background: #10281F; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: .8rem; }
.hmp-feat__more { font-weight: 700; }

/* hero: image templates */
.hmp-hero__item { border-radius: var(--hmp-radius, 18px); }
.hmp-inner--full .hmp-hero__item { border-radius: 0; }
.hmp-hero--single .hmp-hero__grid { display: block; }
.hmp-hero--split .hmp-hero__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.hmp-hero--split .hmp-hero__item { height: var(--hmp-hero-h, 480px); }
.hmp-split__list { display: flex; flex-direction: column; gap: 12px; }
.hmp-split__item { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--hybridmag-color-bg-cl-sep-content, #fff); color: inherit; text-decoration: none; }
.hmp-split__thumb { flex: 0 0 38%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #e5e7eb; }
.hmp-split__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hmp-split__title { font-size: .98rem; font-weight: 700; line-height: 1.35; }
@media (max-width: 767px) {
  .hmp-hero--split .hmp-hero__grid { grid-template-columns: 1fr; }
  .hmp-hero--split .hmp-hero__item { height: var(--hmp-hero-h, 300px); }
}

/* categories: icon tiles */
.hmp-topic { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid rgba(0,0,0,.06); border-radius: var(--hmp-radius, 18px); background: var(--hybridmag-color-bg-cl-sep-content, #fff); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.hmp-topic:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.hmp-topic__icon { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; }
.hmp-topic__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hmp-topic__name { font-weight: 700; line-height: 1.3; }
.hmp-topic__sub { font-size: .85rem; opacity: .7; }

/* latest: tile cards and titles */
.hmp-tcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(0,0,0,.06); border-radius: var(--hmp-radius, 18px); background: var(--hybridmag-color-bg-cl-sep-content, #fff); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.hmp-tcard:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.09); }
.hmp-tcard__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden; }
.hmp-tcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hmp-tcard__media--tile svg { opacity: .6; }
.hmp-tcard__body { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.hmp-tcard__title { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.hmp-tcard__by { font-size: .88rem; opacity: .85; }
.hmp-titles { margin: 0; padding: 0; list-style: none; }
.hmp-titles a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.1); color: inherit; text-decoration: none; }
.hmp-titles__t { font-weight: 600; }
.hmp-titles time { font-size: .85rem; white-space: nowrap; opacity: .6; }

/* feature tiles */
.hmp-feats__item { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--hmp-radius, 18px); }
.hmp-feats__item h3 { margin: 0; font-size: 1.15rem; }
.hmp-feats__item p { margin: 0; line-height: 1.55; opacity: .85; }
.hmp-feats--cards .hmp-feats__item { background: var(--hybridmag-color-bg-cl-sep-content, #fff); border: 1px solid rgba(0,0,0,.1); }
.hmp-feats--plain .hmp-feats__item { padding: 12px 0; background: none; }

/* call to action: full-width band */
.hmp-home-section--cta.is-band { background: var(--hmp-cta-bg, var(--hmp-accent, #FFC21A)); color: var(--hmp-cta-text, #10281F); }
.hmp-cta--band { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hmp-cta--band .hmp-cta__main { flex: 1 1 360px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hmp-cta--band h2 { margin: 0; color: inherit; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; }
.hmp-cta--band p { margin: 0; max-width: 460px; opacity: .9; }
.hmp-cta--band .hmp-eyebrow { color: inherit; opacity: .75; }
.hmp-cta--band .hmp-cta__btn { background: var(--hmp-cta-text, #10281F); color: var(--hmp-cta-bg, #FFC21A); }
.hmp-cta__list { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hmp-cta__list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 16px; background: rgba(255,255,255,.55); color: inherit; font-weight: 600; text-decoration: none; }
.hmp-cta__list a:hover { background: rgba(255,255,255,.8); }

/* post page */
.hmp-single__cat { margin-bottom: .75rem; }
.hmp-meta__by { opacity: .8; }
.hmp-meta svg { vertical-align: -2px; }

/* dark mode for the new pieces */
html.hm-dark .hmp-tile-1 { background: #1D3A2D; }
html.hm-dark .hmp-tile-2 { background: #4A3C0F; }
html.hm-dark .hmp-tile-3 { background: #1B2F3F; }
html.hm-dark .hmp-hero__search input { background: #14241E; color: #fff; border-color: rgba(255,255,255,.2); }
html.hm-dark .hmp-hero__chips a,
html.hm-dark .hmp-home-viewall { border-color: rgba(255,255,255,.25); background: transparent; }
html.hm-dark .hmp-topic,
html.hm-dark .hmp-tcard,
html.hm-dark .hmp-feats--cards .hmp-feats__item { border-color: rgba(255,255,255,.12); }

@media (max-width: 599px) {
  .hmp-inner { padding: 0 16px; }
  .hmp-hero--intro, .hmp-cta--band { gap: 28px; }
  .hmp-hero__search { flex-direction: column; }
  .hmp-hero__search button { width: 100%; }
}
