/* Site header — brand redesign (RTL + LTR, desktop + mobile) */
:root{--hd-g:#0a7a4b;--hd-gd:#043d29;--hd-gold:#c9a24b;--hd-ink:#1f2b40;--hd-soft:#f1f6f3}
header.heading{padding:10px 28px !important;border-bottom:0 !important;background:#fff;box-shadow:0 4px 22px rgba(4,61,41,.08);z-index:99}
header.heading:after{content:"";position:absolute;inset-inline:0;bottom:0;height:3px;background:linear-gradient(90deg,var(--hd-g),#16a974 45%,var(--hd-gold))}
header.heading.navbar_fixed{top:0 !important;transform:none !important;box-shadow:0 6px 26px rgba(4,61,41,.14) !important}
header.heading .container-fluid{padding:0}
header.heading .d-flex{min-width:0}

/* brand */
header.heading .heading-logo.hl-brand{display:flex !important;align-items:center;gap:12px;flex:none}
header.heading .heading-logo.hl-brand img.hl-icon{height:52px !important;width:auto !important}
header.heading .hl-text b{font-size:16px;font-weight:800;color:var(--hd-g);line-height:1.25}
header.heading .hl-text small{font-size:11px;font-weight:700;color:#9a8450;letter-spacing:.2px}
html[dir=ltr] header.heading .hl-text{text-align:left}

/* category + search */
header.heading .heading-category-inner{background:#eaf6ef;border-radius:12px;padding:9px 14px;gap:8px;color:var(--hd-g);font-weight:800;font-size:14.5px;cursor:pointer;transition:.2s;border:0}
header.heading .heading-category-inner:hover{background:#d9efe3}
header.heading .heading-category-inner svg{width:18px;height:18px}
header.heading .heading-category-inner span{color:var(--hd-g) !important;margin-inline:0 !important;padding:0 !important}
header.heading .heading-search-box{flex:0 1 300px !important;min-width:160px !important}
header.heading .heading-search-box .form-box{position:relative}
header.heading .heading-search-box .form-icon{position:absolute;top:50%;transform:translateY(-50%);inset-inline-start:16px;margin:0;z-index:2;display:flex;pointer-events:none}
header.heading .heading-search-box .form-icon svg{width:18px;height:18px}
header.heading .heading-search-box .form-control{height:44px;border-radius:99px;background:var(--hd-soft);border:1.5px solid transparent;padding-inline:44px 16px;font-size:14px;box-shadow:none;transition:.2s}
header.heading .heading-search-box .form-control:focus{background:#fff;border-color:var(--hd-g);box-shadow:0 0 0 4px rgba(10,122,75,.12)}

/* nav */
header.heading .heading-nav{display:flex;align-items:center;flex-wrap:nowrap;gap:2px;margin:0;padding:0;list-style:none}
header.heading .heading-list{margin:0;padding:0}
header.heading .heading-list>a,header.heading .heading-links{display:inline-flex !important;align-items:center;white-space:nowrap;font-size:15px !important;font-weight:700 !important;padding:9px 14px !important;border-radius:10px;background:none !important;-webkit-background-clip:border-box !important;background-clip:border-box !important;color:var(--hd-ink) !important;transition:.2s;line-height:1.4 !important}
header.heading .heading-links:hover,header.heading .heading-links.active{background:#eaf6ef !important;color:var(--hd-g) !important}
header.heading .heading-list:first-child>a,header.heading .heading-list:last-child>a{border-radius:10px !important}

/* right side */
header.heading .heading-end{gap:10px !important}
header.heading .lang-toggle{height:40px;min-width:44px;border:1.5px solid #d6e4dc;border-radius:99px;font-weight:800;font-size:13.5px;color:var(--hd-g);background:#fff;transition:.2s;text-decoration:none}
header.heading .lang-toggle:hover{background:var(--hd-g);color:#fff;border-color:var(--hd-g)}
header.heading .heading-cart-icon{width:42px;height:42px;border-radius:50%;background:var(--hd-soft);display:flex;align-items:center;justify-content:center;position:relative;transition:.2s}
header.heading .heading-cart-icon:hover{background:#dcefe4}
header.heading .heading-cart-icon .heading-cart-items{position:absolute;top:-3px;inset-inline-end:-3px;min-width:18px;height:18px;border-radius:99px;background:var(--hd-gold);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 4px}
header.heading .profile_img{background:var(--hd-soft);border-radius:99px;padding:4px 14px 4px 4px;gap:10px;transition:.2s}
html[dir=rtl] header.heading .profile_img{padding:4px 4px 4px 14px}
header.heading .profile_img:hover{background:#dcefe4}
header.heading .profile_img .studentProfileThumb{width:36px;height:36px;border-radius:50%;flex:none;margin:0 !important;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.15)}
header.heading .profile_img>span{font-size:14px;font-weight:700;color:var(--hd-ink);max-width:130px;overflow:hidden;text-overflow:ellipsis}
header.heading .profile_img>span small{display:none !important}
header.heading .profile_info_iner{border-radius:16px;box-shadow:0 16px 40px rgba(4,61,41,.18);border:1px solid #e3efe8;padding:8px;min-width:230px;inset-inline-end:0;inset-inline-start:auto}
header.heading .profile_info_iner a{border-radius:10px;padding:9px 14px;font-weight:600;transition:.15s}
header.heading .profile_info_iner a:hover{background:#eaf6ef;color:var(--hd-g)}
header.heading .secondary-btn,header.heading .primary-btn{border-radius:99px !important;padding:10px 22px !important;font-weight:800 !important;font-size:14px !important;white-space:nowrap}
header.heading .secondary-btn{background:#fff !important;border:1.5px solid var(--hd-g) !important;color:var(--hd-g) !important}
header.heading .primary-btn{background:linear-gradient(135deg,#0a7a4b,#16a974) !important;color:#fff !important;border:0 !important}

/* burger */
header.heading .hb-burger{width:44px;height:44px;border-radius:12px;background:var(--hd-g) !important;border:0;display:inline-flex;align-items:center;justify-content:center;padding:0;flex:none}
header.heading .hb-burger svg{width:22px;height:22px}

/* tablet / small laptop */
@media(max-width:1399px){header.heading{padding:10px 18px !important}header.heading .hl-text b{font-size:14px}header.heading .hl-text small{font-size:10px}header.heading .heading-links{padding:9px 10px !important;font-size:14.5px !important}header.heading .profile_img>span{max-width:90px}}
@media(max-width:1199px){header.heading .hl-text{display:none}header.heading .profile_img>span{display:none}header.heading .profile_img{padding:4px !important}header.heading .heading-category-inner span{display:none}header.heading .heading-category-inner{padding:10px 12px}}
/* mobile */
@media(max-width:991px){
  header.heading{padding:8px 14px !important}
  header.heading .heading-logo.hl-brand img.hl-icon{height:44px !important}
  header.heading .heading-end{gap:8px !important}
  header.heading .lang-toggle{height:38px;min-width:40px}
  header.heading .heading-cart-icon{width:38px;height:38px}
  header.heading .profile_img .studentProfileThumb{width:34px;height:34px}
  header.heading .heading-category,header.heading .heading-search-box:not(.mobile-visible){display:none}
  header.heading .mobile-search{padding-inline-end:0 !important}
  header.heading #mobileSearchToggle{width:38px;height:38px;border-radius:50%;background:var(--hd-soft)}
}
@media(max-width:380px){header.heading .heading-end{gap:6px !important}header.heading .lang-toggle{min-width:36px;padding:0 6px}}

/* mobile drawer */
.offcanvas.offcanvas-start{width:min(320px,86vw);border:0;box-shadow:0 0 50px rgba(0,0,0,.25)}
.offcanvas .offcanvas-header{border-bottom:3px solid var(--hd-gold);background:linear-gradient(135deg,#f4fbf7,#fff);padding:14px 18px}
.offcanvas .offcanvas-header img{height:48px !important;width:auto !important}
.offcanvas .offcanvas-body{padding:12px 14px 20px;display:flex;flex-direction:column}
.offcanvas .heading-nav{display:block;margin:0;padding:0;list-style:none}
.offcanvas .heading-list{border-bottom:1px dashed #e0ece5}
.offcanvas .heading-links{display:flex !important;justify-content:space-between;align-items:center;font-size:16.5px !important;font-weight:700 !important;padding:14px 10px !important;color:var(--hd-ink) !important;background:none !important;-webkit-background-clip:border-box !important;background-clip:border-box !important}
.offcanvas .heading-links:hover{color:var(--hd-g) !important;background:#eaf6ef !important;border-radius:10px}
.oc-actions{margin-top:20px;display:grid;gap:10px}
.oc-actions a{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px;border-radius:12px;font-weight:800;text-decoration:none}
.oc-actions .oc-lang{background:#fff;border:1.5px solid #d6e4dc;color:var(--hd-g)}
.oc-actions .oc-login{background:#fff;border:1.5px solid var(--hd-g);color:var(--hd-g)}
.oc-actions .oc-signup{background:linear-gradient(135deg,#0a7a4b,#16a974);color:#fff}
@media(prefers-reduced-motion:reduce){header.heading *{transition:none !important}}
/* drawer: open from the reading-start side, brand block, spacing */
html[dir=rtl] .offcanvas.offcanvas-start{left:auto;right:0;transform:translateX(100%)}
html[dir=rtl] .offcanvas.offcanvas-start.show,html[dir=rtl] .offcanvas.offcanvas-start.showing{transform:none}
html[dir=ltr] .offcanvas.offcanvas-start{left:0;right:auto}
.offcanvas .offcanvas-header{display:flex !important;align-items:center;justify-content:space-between}
.offcanvas .oc-brand img.hl-icon{height:42px !important;width:auto !important}
.offcanvas .oc-brand .hl-text b{font-size:15px;color:var(--hd-g)}
.offcanvas .oc-brand .hl-text small{font-size:10.5px;color:#9a8450}
.offcanvas .offcanvas-body{padding-top:8px}
.offcanvas .heading-nav>.heading-list:first-child{margin-top:4px}
.offcanvas .heading-links,.offcanvas .heading-list>a{min-height:50px}
.offcanvas .btn-close{margin:0}
/* spacer = real header height */
.heading-clear{height:72px !important}
@media(max-width:991px){.heading-clear{height:62px !important}}

/* header buttons: clear hover / focus states (no dark-on-green text, no black focus ring) */
header.heading .secondary-btn,header.heading .primary-btn{transition:background .2s,color .2s,box-shadow .2s,transform .2s;outline:0 !important}
header.heading .secondary-btn:hover,header.heading .secondary-btn:active{background:linear-gradient(135deg,#0a7a4b,#16a974) !important;color:#fff !important;border-color:transparent !important;box-shadow:0 8px 20px rgba(10,122,75,.28);transform:translateY(-1px)}
header.heading .primary-btn:hover,header.heading .primary-btn:active{background:linear-gradient(135deg,#043d29,#0a7a4b) !important;color:#fff !important;box-shadow:0 8px 20px rgba(4,61,41,.3);transform:translateY(-1px)}
header.heading .secondary-btn:focus-visible,header.heading .primary-btn:focus-visible{box-shadow:0 0 0 3px rgba(10,122,75,.28) !important}
header.heading .secondary-btn:focus:not(:focus-visible),header.heading .primary-btn:focus:not(:focus-visible){box-shadow:none}


/* phones: the account menu opened inside the (clipped) header and its first items were hidden - show it as a panel under the header */
@media(max-width:991.98px){
  header.heading .profile_info_iner{position:fixed !important;top:74px !important;inset-inline-end:12px !important;inset-inline-start:auto !important;width:min(300px,calc(100vw - 24px)) !important;min-width:0 !important;max-height:calc(100vh - 100px);overflow:auto;transform:none !important;z-index:100000 !important}
  header.heading .profile_info_iner::after{display:none !important}
}
