/* Hebemys Academy. All selectors are scoped to the dedicated Academy markup. */
.hb-academy {
  --hb-academy-blue: #1953a0;
  --hb-academy-blue-dark: #113a70;
  --hb-academy-ink: #1f2c39;
  --hb-academy-muted: #6d7783;
  --hb-academy-warm: #b28b61;
  --hb-academy-warm-bg: #f9f6f0;
  --hb-academy-line: #e8edf2;
  font-family: inherit;
  color: var(--hb-academy-ink);
  background: #fff;
  direction: rtl;
  text-align: right;
  padding: 38px 0 80px;
  line-height: 1.8;
  width: 100%;
  box-sizing: border-box;
}
.hb-academy *, .hb-academy *::before, .hb-academy *::after { box-sizing: border-box; }
.hb-academy__wrap { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.hb-academy a { color: inherit; text-decoration: none; transition: color .2s ease; }
.hb-academy a:hover { color: var(--hb-academy-blue); }
.hb-academy :is(a, button, input):focus-visible { outline: 3px solid var(--hb-academy-blue); outline-offset: 3px; }
.hb-academy :is(h1,h2,h3,p) { margin: 0; color: inherit; }
.hb-academy :is(h1,h2,h3) { line-height: 1.55; font-weight: 800; }
.hb-academy__preview { background:#fff3c5; color:#664400; border:1px solid #e7c75f; border-radius:10px; padding:10px 16px; margin-bottom:18px; font-size:13px; }

/* An intentionally modest hero, with no remote images or external fonts. */
.hb-academy__hero {
  min-height: 320px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(220px, .65fr);
  align-items: center;
  background: var(--hb-academy-warm-bg);
  border: 1px solid #f0e9db;
  border-radius: 24px;
  padding: 48px 54px;
  position: relative;
  gap: 20px;
}
.hb-academy__hero::after { content:""; position:absolute; right:0; top:36px; bottom:36px; width:4px; border-radius:4px 0 0 4px; background:var(--hb-academy-blue); }
.hb-academy__hero-copy { min-width:0; position:relative; z-index:1; }
.hb-academy__eyebrow { display:inline-flex; align-items:center; gap:9px; font-family:inherit; direction:ltr; color:var(--hb-academy-blue); letter-spacing:1.6px; font-size:11px; font-weight:800; margin-bottom:18px; }
.hb-academy__eyebrow-dot { width:7px; height:7px; background:var(--hb-academy-warm); border-radius:50%; }
.hb-academy .hb-academy__hero h1 { font-size: clamp(27px, 3.2vw, 43px); letter-spacing:-.5px; margin-bottom:12px; }
.hb-academy__hero p { font-size:15px; max-width:620px; line-height:2; color:#525a63; }
.hb-academy__hero-art { display:flex; justify-content:center; align-items:center; width:100%; min-height:220px; position:relative; isolation:isolate; }
.hb-academy__art-ring { position:absolute; border-radius:50%; border:1px solid rgba(25,83,160,.17); }
.hb-academy__art-ring--outer { width:245px; height:245px; }
.hb-academy__art-ring--inner { width:185px; height:185px; border:18px solid rgba(25,83,160,.035); }
.hb-academy__art-bean { position:absolute; width:64px; height:94px; background: #b69b7b; border-radius:48% 52% 50% 51%; transform:rotate(26deg); box-shadow: inset 13px 4px 15px rgba(87,51,29,.15), 0 15px 30px rgba(97,68,38,.13); }
.hb-academy__art-bean::after { content:""; position:absolute; height:69px; width:12px; top:12px; left:28px; border-left:4px solid #6c5037; border-radius:50%; transform:rotate(8deg); }
.hb-academy__art-bean--one { transform:rotate(17deg) translate(-35px,-20px); }
.hb-academy__art-bean--two { transform:rotate(-33deg) translate(32px,10px); background:#877158; }
.hb-academy__art-bean--three { transform:rotate(95deg) translate(36px,-70px) scale(.58); background:#c8b395; }
.hb-academy__art-caption { position:absolute; bottom:-1px; font-size:9px; color:#8b806f; letter-spacing:2px; direction:ltr; }

.hb-academy__search { display:flex; align-items:center; gap:10px; max-width:640px; margin-top:24px; padding:5px 6px 5px 15px; min-height:57px; background:#fff; box-shadow:0 5px 19px rgba(25,49,69,.07); border:1px solid #e6e6e2; border-radius:13px; }
.hb-academy__search svg { color:#6c7a89; flex:none; margin-right:11px; }
.hb-academy .hb-academy__search input[type=search] { display:block; min-width:0; flex:1; min-height:40px; width:100%; border:0; background:transparent; box-shadow:none; padding:6px 4px; margin:0; font-family:inherit; font-size:13px; color:var(--hb-academy-ink); outline:0; }
.hb-academy .hb-academy__search button { flex:none; border:0; cursor:pointer; border-radius:9px; padding:10px 25px; color:#fff; background:var(--hb-academy-blue); font-family:inherit; font-size:13px; line-height:1.6; font-weight:700; min-height:43px; box-shadow:none; }
.hb-academy .hb-academy__search button:hover { background:var(--hb-academy-blue-dark); color:#fff; }
.hb-academy__search--standalone { margin:20px 0 0; }
.hb-academy__compact-heading h1 { font-size:32px; }

/* Category chips scroll horizontally on small screens. */
.hb-academy__categories { display:flex; flex-wrap:wrap; gap:9px; margin-top:24px; margin-bottom:42px; }
.hb-academy a.hb-academy__chip { display:inline-flex; align-items:center; justify-content:center; padding:7px 18px; border:1px solid var(--hb-chip-border,#e5eaf0); border-radius:100px; background:var(--hb-chip-bg,#fff); color:var(--hb-chip-text,#1f2c39); font-size:13px; line-height:1.7; font-weight:650; white-space:nowrap; transition:background-color .2s ease, color .2s ease, border-color .2s ease; }
.hb-academy a.hb-academy__chip:not(.is-active):hover, .hb-academy a.hb-academy__chip:not(.is-active):focus-visible { background:var(--hb-chip-hover-bg,#fff); border-color:var(--hb-chip-hover-border,#1953a0); color:var(--hb-chip-hover-text,#1953a0); }
.hb-academy a.hb-academy__chip.is-active, .hb-academy a.hb-academy__chip.is-active:hover, .hb-academy a.hb-academy__chip.is-active:focus-visible { background:var(--hb-chip-active-bg,#1953a0); border-color:var(--hb-chip-active-border,#1953a0); color:var(--hb-chip-active-text,#fff); }
.hb-academy a.hb-academy__chip.is-special { background:var(--hb-special-chip-bg,#fff3c8); border-color:var(--hb-special-chip-border,#e0bb67); color:var(--hb-special-chip-text,#6f4a00); font-weight:800; box-shadow:0 6px 16px rgba(191,141,30,.14); }
.hb-academy a.hb-academy__chip.is-special:not(.is-active):hover, .hb-academy a.hb-academy__chip.is-special:not(.is-active):focus-visible { background:var(--hb-special-chip-hover-bg,#ffe8a0); border-color:var(--hb-special-chip-hover-border,#d4a64c); color:var(--hb-special-chip-hover-text,#5f3f00); }
.hb-academy a.hb-academy__chip.is-special.is-active, .hb-academy a.hb-academy__chip.is-special.is-active:hover, .hb-academy a.hb-academy__chip.is-special.is-active:focus-visible { background:var(--hb-special-chip-active-bg,#f1c96b); border-color:var(--hb-special-chip-active-border,#cf9d35); color:var(--hb-special-chip-active-text,#513500); }
.hb-academy .hb-academy__chip-marker { display:inline-flex; align-items:center; justify-content:center; margin-left:8px; font-size:12px; line-height:1; }


.hb-academy__section { margin:46px 0; }
.hb-academy__section-kicker { display:block; font-size:11px; color:var(--hb-academy-warm); font-weight:800; margin-bottom:4px; }
.hb-academy__heading-row { display:flex; justify-content:space-between; align-items:end; gap:16px; margin-bottom:24px; }
.hb-academy .hb-academy__heading-row h2 { font-size:clamp(22px,2.2vw,28px); }
.hb-academy__heading-row > p, .hb-academy__results-count { font-size:13px; color:var(--hb-academy-muted); }

/* Editorial starter cards. */
.hb-academy__starter-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.hb-academy a.hb-academy__starter { display:flex; align-items:center; gap:13px; min-height:88px; padding:19px 20px; border:1px solid var(--hb-academy-line); border-radius:15px; box-shadow:0 3px 12px rgba(35,56,75,.025); }
.hb-academy a.hb-academy__starter:hover { border-color:#b8cee7; box-shadow:0 8px 24px rgba(25,83,160,.07); transform:translateY(-2px); }
.hb-academy__starter-number { font-family:inherit; font-size:23px; line-height:1.4; font-weight:800; color:#c5b08e; direction:ltr; }
.hb-academy__starter-title { font-size:14px; font-weight:750; flex:1; line-height:1.8; }
.hb-academy__starter-arrow { font-size:21px; color:var(--hb-academy-blue); }

/* Featured article is optional and manually curated. */
.hb-academy__featured { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); min-height:300px; overflow:hidden; border-radius:18px; background:#f8f9fb; border:1px solid #edf0f5; }
.hb-academy a.hb-academy__featured-media { display:block; min-width:0; overflow:hidden; position:relative; background:#e4e6e5; }
.hb-academy__img { width:100%; height:100%; display:block; object-fit:cover; transition:transform .45s ease; }
.hb-academy__featured-media .hb-academy__img { position:absolute; inset:0; }
.hb-academy a.hb-academy__featured-media:hover .hb-academy__img, .hb-academy a.hb-academy__card-media:hover .hb-academy__img { transform:scale(1.035); }
.hb-academy__image-placeholder { display:flex; justify-content:center; align-items:center; width:100%; height:100%; min-height:200px; font-size:64px; background:#e9e7e1; }
.hb-academy__featured-content { padding:35px 40px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.hb-academy__badge { border-radius:30px; color:var(--hb-academy-blue); background:#e7eef7; font-size:12px; font-weight:700; padding:3px 12px; margin-bottom:14px; }
.hb-academy .hb-academy__featured h3 { font-size:clamp(20px,2vw,26px); margin-bottom:14px; }
.hb-academy__featured-content > p { font-size:13px; color:#69737d; line-height:2; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.hb-academy__featured-bottom { width:100%; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:24px; }
.hb-academy__time { font-size:12px; color:#77818d; }
.hb-academy a.hb-academy__text-link { color:var(--hb-academy-blue); font-weight:800; font-size:13px; }

/* Three equal-height cards per desktop row. */
.hb-academy__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.hb-academy__card { display:flex; flex-direction:column; min-width:0; overflow:hidden; background:#fff; border:1px solid #edf0f3; border-radius:15px; box-shadow:0 4px 18px rgba(32,57,78,.045); transition:box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.hb-academy__card:hover { box-shadow:0 12px 32px rgba(27,55,77,.1); transform:translateY(-4px); border-color:#dfe7f1; }
.hb-academy a.hb-academy__card-media { position:relative; display:block; aspect-ratio:1.6; overflow:hidden; background:#e8e5de; flex:none; }
.hb-academy__card-media .hb-academy__img { position:absolute; inset:0; }
.hb-academy__card-media .hb-academy__image-placeholder { min-height:100%; }
.hb-academy__card-category { position:absolute; bottom:13px; right:14px; z-index:1; border-radius:30px; background:rgba(255,255,255,.94); color:var(--hb-academy-blue); font-size:11px; font-weight:800; padding:3px 12px; box-shadow:0 2px 8px rgba(0,0,0,.09); }
.hb-academy__card-body { display:flex; flex:1; flex-direction:column; padding:24px 24px 21px; }
.hb-academy .hb-academy__card-title { font-size:17px; font-weight:800; min-height:3.3em; line-height:1.65; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-bottom:10px; }
.hb-academy__excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:13px; line-height:1.9; color:var(--hb-academy-muted) !important; min-height:3.8em; }
.hb-academy__card-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:#81909d; font-size:11px; min-height:28px; margin-top:13px; }
.hb-academy__card-meta span + span:before { content:"•"; color:#c6c5be; margin-left:7px; }
.hb-academy__level { color:#8c754f; }
.hb-academy a.hb-academy__readmore { display:flex; justify-content:space-between; align-items:center; color:var(--hb-academy-blue); border-top:1px solid #f0f2f4; margin-top:auto; padding-top:15px; font-size:13px; font-weight:800; }
.hb-academy__readmore span { font-size:20px; line-height:1; }

/* Pagination stays crawlable and works without JavaScript. */
.hb-academy__pagination { display:flex; justify-content:center; align-items:center; gap:8px; flex-wrap:wrap; margin-top:35px; }
.hb-academy a.hb-academy__page, .hb-academy a.hb-academy__page-nav { display:inline-flex; align-items:center; justify-content:center; border:1px solid #e4e9ef; background:#fff; color:#435366; border-radius:10px; min-width:40px; min-height:40px; padding:6px 11px; font-size:13px; }
.hb-academy a.hb-academy__page-nav { padding-inline:18px; }
.hb-academy a.hb-academy__page:hover, .hb-academy a.hb-academy__page-nav:hover { border-color:var(--hb-academy-blue); color:var(--hb-academy-blue); }
.hb-academy a.hb-academy__page.is-current { color:#fff; border-color:var(--hb-academy-blue); background:var(--hb-academy-blue); }
.hb-academy__ellipsis { display:inline-flex; padding:8px; }
.hb-academy__empty { padding:60px 25px; border-radius:16px; background:#f9fafb; border:1px solid var(--hb-academy-line); text-align:center; }
.hb-academy .hb-academy__empty h3 { font-size:20px; margin-bottom:8px; }
.hb-academy__empty p { color:var(--hb-academy-muted); font-size:13px; margin-bottom:24px; }

/* Optional soft conversion areas; require real admin-configured URLs. */
.hb-academy__cta { display:flex; align-items:center; justify-content:space-between; gap:28px; background:#eef3f9; border-radius:20px; padding:35px 44px; margin-top:55px; }
.hb-academy .hb-academy__cta h2 { font-size:clamp(19px,2vw,25px); margin:5px 0; }
.hb-academy__cta p { color:#677586; font-size:13px; max-width:670px; }
.hb-academy a.hb-academy__button { flex:none; display:inline-flex; align-items:center; justify-content:center; gap:14px; background:var(--hb-academy-blue); color:#fff; border-radius:10px; min-height:47px; padding:12px 21px; font-size:13px; font-weight:800; }
.hb-academy a.hb-academy__button:hover { background:var(--hb-academy-blue-dark); color:#fff; }
.hb-academy__newsletter { margin-top:24px; padding:22px 26px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--hb-academy-line); border-bottom:1px solid var(--hb-academy-line); font-size:13px; color:var(--hb-academy-muted); }
.hb-academy__newsletter a { font-weight:800; color:var(--hb-academy-blue); }

@media (max-width: 1100px) {
  .hb-academy__hero { padding:40px 34px; }
  .hb-academy__grid { gap:16px; }
  .hb-academy__card-body { padding:20px; }
}
@media (max-width: 860px) {
  .hb-academy { padding:26px 20px 65px; }
  .hb-academy__hero { grid-template-columns:1fr; min-height:auto; padding:38px 34px; }
  .hb-academy__hero-art { display:none; }
  .hb-academy__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hb-academy__starter-grid { grid-template-columns:1fr; }
  .hb-academy__featured-content { padding:26px; }
  .hb-academy__featured { grid-template-columns:1fr 1fr; }
  .hb-academy__categories { overflow-x:auto; flex-wrap:nowrap; padding-bottom:8px; -webkit-overflow-scrolling:touch; }
}
@media (max-width: 600px) {
  .hb-academy { padding:18px 15px 48px; }
  .hb-academy__hero { padding:28px 22px; border-radius:16px; }
  .hb-academy .hb-academy__hero h1 { font-size:27px; }
  .hb-academy__hero p { font-size:13px; }
  .hb-academy__eyebrow { font-size:10px; letter-spacing:1px; }
  .hb-academy__search { padding:5px; min-height:49px; gap:3px; }
  .hb-academy .hb-academy__search button { padding:8px 13px; min-height:39px; }
  .hb-academy__search svg { display:none; }
  .hb-academy .hb-academy__search input[type=search] { font-size:12px; }
  .hb-academy__categories { margin-top:17px; margin-bottom:34px; }
  .hb-academy__section { margin:33px 0; }
  .hb-academy__heading-row { align-items:start; margin-bottom:15px; }
  .hb-academy__heading-row > p { display:none; }
  .hb-academy__grid { grid-template-columns:1fr; gap:18px; }
  .hb-academy__card-body { padding:20px; }
  .hb-academy__card-title { min-height:auto !important; }
  .hb-academy__featured { grid-template-columns:1fr; }
  .hb-academy a.hb-academy__featured-media { aspect-ratio:1.65; }
  .hb-academy__featured-content { padding:26px 22px; }
  .hb-academy__cta { display:block; padding:28px 22px; }
  .hb-academy__cta p { margin-bottom:18px; }
  .hb-academy__newsletter { flex-wrap:wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-academy *, .hb-academy *::before, .hb-academy *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
  .hb-academy__card:hover, .hb-academy__starter:hover { transform:none !important; }
}
/* Optional real WooCommerce product; no external product feed or invented prices. */
.hb-academy__product { display:flex; align-items:center; gap:24px; padding:22px; border:1px solid var(--hb-academy-line); background:#fff; border-radius:16px; }
.hb-academy__product-image { display:block; width:132px; height:132px; flex:none; overflow:hidden; border-radius:12px; background:#f7f7f7; }
.hb-academy__product-image .hb-academy__img { object-fit:contain; }
.hb-academy .hb-academy__product h3 { font-size:18px; margin:3px 0 7px; }
.hb-academy__product-price { color:var(--hb-academy-muted); font-size:13px; margin-bottom:12px; }
@media (max-width:600px) { .hb-academy__product { gap:14px; padding:14px; } .hb-academy__product-image { width:100px; height:100px; } }

/* v2.9 independently controlled rounding; Academy page only. */
.hb-academy a.hb-academy__chip {border-radius:var(--hb-category-chip-radius,100px)!important;}
.hb-academy a.hb-academy__chip.is-special {border-radius:var(--hb-special-chip-radius,100px)!important;}
.hb-academy .hb-academy__card {border-radius:var(--hb-article-card-radius,15px)!important;}
.hb-academy .hb-academy__featured {border-radius:var(--hb-featured-card-radius,18px)!important;}
.hb-academy a.hb-academy__starter {border-radius:var(--hb-starter-card-radius,15px)!important;}
.hb-academy .hb-academy__card-category,.hb-academy .hb-academy__badge {border-radius:var(--hb-article-badge-radius,30px)!important;}
.hb-academy .hb-academy__product {border-radius:var(--hb-product-card-radius,16px)!important;}
.hb-academy .hb-academy__cta {border-radius:var(--hb-cta-card-radius,20px)!important;}
.hb-academy a.hb-academy__page,.hb-academy a.hb-academy__page-nav {border-radius:var(--hb-pagination-radius,10px)!important;}
.hb-academy .hb-academy__search {border-radius:var(--hb-hero-search-radius,0px)!important;}
.hb-academy .hb-academy__search button {border-radius:var(--hb-hero-search-button-radius,0px)!important;}

/* v3.0 full-width uploaded hero layout */
.hb-academy--hero-flush{padding-top:0!important;}
.hb-academy--hero-flush .hb-academy__preview{margin-top:16px;}
@media(max-width:600px){.hb-academy{padding-bottom:56px}.hb-academy__wrap{padding:0 16px;}}

/* v3.1 stronger flush for academy top area */
.hb-academy--hero-flush .hb-academy__wrap{padding-top:0!important;}
.hb-academy--hero-flush .hb-academy__preview + .hbac{margin-top:0!important;}
