/* ==========================================================================
   hagabay26 — keeps the ORIGINAL hagabay.net branding (colours sampled from the live site 2026-11-04):
   white header with the title image + Ayelet HaShachar logo, sky-blue navigation (#38a6e8, active #0674c9) between dark-blue
   stripes (#1b379b), the blue banner, grey side boxes (#f0f0f0) with blue titles (#428bca), light footer (#f8f8f8).
   Loaded after Cassiopeia's CSS (Bootstrap 5), so core components only need the brand variables below.
   ========================================================================== */

:root {
    --hg-frame:        #1b379b;
    --hg-nav:          #38a6e8;
    --hg-nav-active:   #0674c9;
    --hg-link:         #428bca;
    --hg-link-hover:   #2a6496;
    --hg-side-active:  #3c7eb8;
    --hg-surface:      #f0f0f0;
    --hg-footer:       #f8f8f8;
    --hg-border:       #dddddd;
    --hg-text:         #333333;
    --hg-muted:        #666666;
    --hg-container:    1170px;
    --hg-gap:          24px;
    --hg-radius:       4px;
    --hg-font:         "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Cassiopeia / Bootstrap components follow the brand */
    --cassiopeia-color-primary: var(--hg-link);
    --cassiopeia-color-link:    var(--hg-link);
    --cassiopeia-color-hover:   var(--hg-link-hover);
    --link-color:               var(--hg-link);
    --link-color-rgb:           66, 139, 202;
    --link-hover-color:         var(--hg-link-hover);
}

html { scroll-behavior: smooth; }

body.hg-site {
    font-family: var(--hg-font);
    font-size: 15px;
    line-height: 1.65;
    color: var(--hg-text);
    background: #fff;
    margin: 0;
}

.hg-site a { color: var(--hg-link); }
.hg-site a:hover, .hg-site a:focus-visible { color: var(--hg-link-hover); }
.hg-site :focus-visible { outline: 3px solid var(--hg-frame); outline-offset: 2px; }
.hg-site img { max-width: 100%; height: auto; }

.hg-container { width: 100%; max-width: var(--hg-container); margin-inline: auto; padding-inline: 15px; box-sizing: border-box; }

.hg-skip-link {
    position: absolute; inset-inline-start: 8px; top: -60px; z-index: 3000;
    background: var(--hg-frame); color: #fff !important; padding: 10px 16px; border-radius: 0 0 var(--hg-radius) var(--hg-radius);
}
.hg-skip-link:focus { top: 0; }

/* ----- top bar (only when phone / e-mail / text are filled in) ----- */
.hg-topbar { background: var(--hg-surface); color: var(--hg-muted); font-size: 13px; padding-block: 6px; border-bottom: 1px solid var(--hg-border); }
.hg-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ----- header: title image + partner logo (start), search (end) ----- */
.hg-header { background: #fff; position: relative; z-index: 1000; }
.hg-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.hg-header__logo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hg-logo { display: inline-flex; flex-direction: column; text-decoration: none; }
.hg-logo__img { display: block; width: 366px; max-width: 100%; height: auto; }
.hg-logo__desc { font-size: 13px; color: var(--hg-muted); }
.hg-partner { display: inline-block; }
.hg-partner__img { display: block; width: 118px; height: auto; }

.hg-header__search { flex: 0 1 280px; }
.hg-header__search form, .hg-header__search .mod-search { margin: 0; }
.hg-header__search .input-group { flex-wrap: nowrap; }
.hg-header__search .form-control { border-radius: 0 var(--hg-radius) var(--hg-radius) 0; border: 1px solid #ccc; }
[dir="ltr"] .hg-header__search .form-control { border-radius: var(--hg-radius) 0 0 var(--hg-radius); }
.hg-header__search .btn { border-radius: var(--hg-radius) 0 0 var(--hg-radius); }
[dir="ltr"] .hg-header__search .btn { border-radius: 0 var(--hg-radius) var(--hg-radius) 0; }

.hg-header.is-stuck { position: fixed; top: 0; inset-inline: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.hg-header-spacer { display: none; }

/* ----- main navigation ----- */
.hg-nav { background: var(--hg-nav); border-top: 5px solid var(--hg-frame); position: relative; }
.hg-nav .hg-container { padding-inline: 0; }
.hg-menu, .hg-menu ul { list-style: none; margin: 0; padding: 0; }
.hg-menu { display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; }
.hg-menu__item { position: relative; }
.hg-menu__item > a, .hg-menu__item > span:not(.hg-menu__caret), .hg-menu__item > .nav-header {
    display: flex; align-items: center; gap: 6px; padding: 13px 20px; color: #fff !important; font-weight: 700; font-size: 14px;
    text-decoration: none; white-space: nowrap; transition: background-color .2s;
}
.hg-menu__item:hover > a, .hg-menu__item > a:focus-visible { background: var(--hg-nav-active); color: #fff !important; }
.hg-menu__item.current > a, .hg-menu__item.active > a { background: var(--hg-nav-active); }
.hg-menu__item.deeper > a::after {
    content: ''; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; margin-inline-start: 4px; opacity: .85;
}
.hg-menu__caret { display: none; }
.hg-menu__sub {
    display: none; position: absolute; inset-inline-start: 0; top: 100%; min-width: 220px; z-index: 1100;
    background: #fff; border: 1px solid var(--hg-border); border-top: 0; box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}
.hg-menu__item:hover > .hg-menu__sub, .hg-menu__item:focus-within > .hg-menu__sub { display: block; }
.hg-menu__sub .hg-menu__item > a { color: var(--hg-text) !important; font-weight: 400; padding: 9px 16px; border-bottom: 1px solid #eee; white-space: normal; }
.hg-menu__sub .hg-menu__item > a:hover, .hg-menu__sub .hg-menu__item.current > a { background: var(--hg-surface); color: var(--hg-nav-active) !important; }
.hg-menu__sub .hg-menu__sub { inset-inline-start: 100%; top: 0; }

.hg-header__toggle { display: none; background: var(--hg-nav); border: 0; border-radius: var(--hg-radius); width: 44px; height: 40px; cursor: pointer; padding: 0; }
.hg-hamburger { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.hg-hamburger span { display: block; width: 22px; height: 2px; background: #fff; }
.hg-overlay { display: none; }

/* ----- banner (original image, framed by the dark-blue stripe) ----- */
.hg-hero--banner .hg-container { padding-inline: 0; }
.hg-banner { display: block; width: 100%; height: auto; }
.hg-hero { border-bottom: 5px solid var(--hg-frame); }

/* ----- main ----- */
.hg-main { padding-block: 20px 36px; }
.hg-breadcrumbs { background: var(--hg-surface); border-radius: var(--hg-radius); padding: 8px 14px; margin-bottom: 20px; font-size: 14px; }
.hg-breadcrumbs .breadcrumb, .hg-breadcrumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; background: none; }

.hg-content-area { display: flex; align-items: flex-start; gap: var(--hg-gap); }
.hg-content { flex: 1 1 auto; min-width: 0; }
.hg-sidebar { flex: 0 0 260px; max-width: 260px; }

/* ----- side boxes: grey, blue title, active item in blue ----- */
.hg-panel { background: var(--hg-surface); border-radius: var(--hg-radius); margin-bottom: 20px; overflow: hidden; }
.hg-panel__header h3 { margin: 0; padding: 14px 16px 6px; color: var(--hg-link); font-size: 18px; font-weight: 500; }
.hg-panel__icon { display: none; }
.hg-panel__body { padding: 8px 16px 14px; }
.hg-panel__body ul { list-style: none; margin: 0; padding: 0; }
.hg-panel .mod-menu { margin: 0 -16px; }
.hg-panel .mod-menu li > a, .hg-panel .mod-menu li > span { display: block; padding: 8px 16px; font-size: 14px; text-decoration: none; }
.hg-panel .mod-menu li > a:hover { background: #e4e4e4; }
.hg-panel .mod-menu li.current > a, .hg-panel .mod-menu li.active > a { background: var(--hg-side-active); color: #fff; }
.hg-panel .mod-menu ul { padding-inline-start: 14px; }
.hg-panel img { border-radius: var(--hg-radius); }

/* ----- content cards (core blog markup of Joomla 4+) ----- */
.hg-content .blog-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 0 0 24px; }
.hg-content .blog-item {
    background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: 16px;
    display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start;
}
.hg-content .blog-item:not(:has(.item-image)) { display: block; }
.hg-content .blog-item .item-image, .hg-content .blog-item .item-image.left, .hg-content .blog-item .item-image.right { float: none; margin: 0; }
.hg-content .blog-item .item-image img { display: block; width: 150px; height: 150px; object-fit: cover; border-radius: var(--hg-radius); }
.hg-content .blog-item .item-image figcaption { display: none; }
.hg-content .item-title, .hg-content .item-page .page-header h1, .hg-content .item-page .page-header h2 {
    font-size: 22px; font-weight: 400; line-height: 1.35; margin: 0 0 8px; color: var(--hg-text);
}
.hg-content .item-title a { color: var(--hg-link); text-decoration: none; }
.hg-content .item-title a:hover, .hg-content .item-title a:focus-visible { color: var(--hg-link-hover); text-decoration: underline; }
.hg-content .article-info { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--hg-muted); }
.hg-content .article-info dd { margin: 0; }
.hg-content .article-info-term { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.hg-content .article-info a { color: inherit; text-decoration: none; }
.hg-content .article-info a:hover, .hg-content .article-info a:focus-visible { text-decoration: underline; }
.hg-content .article-info dd { display: inline-flex; align-items: center; gap: 4px; }
.hg-content .blog-item .page-header { margin: 0; }
.hg-content .hg-excerpt { margin: 0 0 10px; text-align: start; line-height: 1.6; }
.hg-content .readmore .btn, .hg-content p.readmore a.btn { background: none; border: 0; padding: 0; color: var(--hg-link); font-weight: 700; font-size: 14px; box-shadow: none; }
.hg-content .readmore .btn:hover { color: var(--hg-link-hover); text-decoration: underline; }

.hg-content .item-page { background: #fff; }
.hg-content .item-page .page-header h1 { font-size: 28px; }
.hg-content .item-page img { border-radius: var(--hg-radius); }

/* ----- forms, buttons, pagination (Bootstrap 5 markup) ----- */
.hg-site .btn-primary { background: var(--hg-link); border-color: #357ebd; color: #fff; }
.hg-site .btn-primary:hover, .hg-site .btn-primary:focus-visible { background: var(--hg-link-hover); border-color: #204d74; color: #fff; }
.hg-site .form-control, .hg-site .form-select { border-color: #ccc; border-radius: var(--hg-radius); }
.hg-site .form-control:focus, .hg-site .form-select:focus { border-color: var(--hg-nav); box-shadow: 0 0 0 .2rem rgba(56, 166, 232, .25); }
.hg-content .pagination { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; list-style: none; padding: 0; margin: 24px 0; }
.hg-content .pagination .page-link { border: 1px solid var(--hg-border); color: var(--hg-link); border-radius: var(--hg-radius); }
.hg-content .pagination .page-item.active .page-link { background: var(--hg-link); border-color: var(--hg-link); color: #fff; }
.hg-content .alert { border-radius: var(--hg-radius); }

/* ----- showcase / bottom grids ----- */
.hg-section { padding-block: 28px; }
.hg-showcase { background: var(--hg-surface); }
.hg-grid { display: grid; gap: var(--hg-gap); }
.hg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ----- footer ----- */
.hg-footer { background: var(--hg-footer); border-top: 1px solid #e7e7e7; color: #555; }
.hg-footer__main { padding-block: 28px 12px; }
.hg-footer-module__title { color: var(--hg-link); font-size: 18px; font-weight: 500; margin: 0 0 10px; }
.hg-footer-module__body ul { list-style: none; margin: 0; padding: 0; }
.hg-footer-module__body li { padding: 3px 0; }
.hg-footer__bottom { border-top: 1px solid #e7e7e7; padding-block: 14px; font-size: 13px; text-align: center; }
.hg-footer__copyright p { margin: 0; }

/* ----- back to top ----- */
.hg-back-to-top {
    position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 1500; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: var(--hg-nav-active); color: #fff; opacity: 0; visibility: hidden; transition: opacity .25s; cursor: pointer;
}
.hg-back-to-top.is-visible { opacity: .92; visibility: visible; }

/* ----- reveal on scroll (JS adds .hg-reveal / .is-visible) ----- */
.hg-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.hg-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hg-reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ----- responsive ----- */
@media (max-width: 991px) {
    .hg-content-area { flex-direction: column; }
    .hg-sidebar { flex: 1 1 auto; max-width: none; width: 100%; }
    .hg-content { order: -1; width: 100%; }
    .hg-grid--3, .hg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .hg-header__toggle { display: inline-flex; align-items: center; justify-content: center; }
    .hg-header__inner { flex-wrap: wrap; }
    .hg-logo__img { width: 240px; }
    .hg-partner__img { width: 80px; }
    .hg-header__search { order: 3; flex: 1 1 100%; }
    .hg-nav {
        position: fixed; top: 0; inset-inline-end: 0; width: min(300px, 82vw); height: 100vh; overflow-y: auto; z-index: 1600;
        transform: translateX(100%); transition: transform .3s; border-top: 0; padding-top: 12px;
    }
    [dir="rtl"] .hg-nav { transform: translateX(-100%); }
    .hg-nav.is-open { transform: translateX(0); }
    .hg-overlay.is-active { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1500; }
    .hg-nav .hg-container { padding-inline: 0; }
    .hg-menu { flex-direction: column; }
    .hg-menu__item > a { border-bottom: 1px solid rgba(255, 255, 255, .25); }
    .hg-menu__sub { position: static; display: block; box-shadow: none; border: 0; background: rgba(0, 0, 0, .12); min-width: 0; }
    .hg-menu__sub .hg-menu__item > a { color: #fff !important; background: none; border-bottom-color: rgba(255, 255, 255, .15); padding-inline-start: 34px; }
    .hg-content .blog-item { grid-template-columns: 1fr; }
    .hg-content .blog-item .item-image img { width: 100%; height: 180px; }
    .hg-grid--2, .hg-grid--3, .hg-grid--4 { grid-template-columns: minmax(0, 1fr); }
    .hg-hero--banner .hg-banner { min-height: 90px; object-fit: cover; }
}

@media print {
    .hg-header, .hg-nav, .hg-hero, .hg-sidebar, .hg-footer, .hg-back-to-top, .hg-breadcrumbs { display: none !important; }
    .hg-content { width: 100%; }
}

/* Page headings inside the content column: the Cassiopeia default (2.5rem) is far larger than the original site */
.hg-content h1, .hg-content .page-header h1 { font-size: 28px; font-weight: 400; line-height: 1.3; margin: 0 0 14px; }
.hg-content h2 { font-size: 22px; font-weight: 400; }

/* ==========================================================================
   Modern polish (2026-11-05) — same brand colours, softer / airier look: no underlined links, light page background,
   rounded shadowed cards, pill buttons, larger readable type.
   ========================================================================== */
:root {
    --hg-navy:   #16307f;
    --hg-bg:     #f3f6fb;
    --hg-ink:    #1f2937;
    --hg-soft:   #5b6677;
    --hg-radius: 12px;
    --hg-shadow: 0 1px 2px rgba(22, 48, 127, .06), 0 4px 14px rgba(22, 48, 127, .07);
    --hg-shadow-hover: 0 2px 4px rgba(22, 48, 127, .08), 0 10px 26px rgba(22, 48, 127, .14);
    --hg-font: "Segoe UI", "Heebo", "Assistant", Arial, sans-serif;
}
body.hg-site { font-size: 16px; line-height: 1.7; color: var(--hg-ink); }
.hg-site a { text-decoration: none; }
.hg-site .hg-content a:hover, .hg-site .hg-content a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.hg-main { background: var(--hg-bg); padding-block: 22px 48px; }

/* header + search */
.hg-header__inner { padding-block: 14px; }
.hg-header__search .form-control { border-radius: 0 999px 999px 0; padding-inline: 16px; border-color: #cfd8e6; background: #fff; }
.hg-header__search .btn { border-radius: 999px 0 0 999px; padding-inline: 18px; font-weight: 600; }
[dir="ltr"] .hg-header__search .form-control { border-radius: 999px 0 0 999px; }
[dir="ltr"] .hg-header__search .btn { border-radius: 0 999px 999px 0; }

/* navigation */
.hg-nav { border-top-width: 4px; box-shadow: 0 2px 8px rgba(22, 48, 127, .18); }
.hg-menu__item > a, .hg-menu__item > span:not(.hg-menu__caret), .hg-menu__item > .nav-header { font-size: 15px; padding: 14px 18px; box-shadow: inset 0 -3px 0 transparent; transition: background-color .2s, box-shadow .2s; }
.hg-menu__item:hover > a, .hg-menu__item > a:focus-visible { box-shadow: inset 0 -3px 0 #fff; }
.hg-menu__item.current > a, .hg-menu__item.active > a { box-shadow: inset 0 -3px 0 #fff; }
.hg-menu__sub { border-radius: 0 0 var(--hg-radius) var(--hg-radius); overflow: hidden; border: 0; }

/* breadcrumbs: no grey box */
.hg-breadcrumbs { background: none; padding: 0 2px; margin-bottom: 16px; font-size: 14px; color: var(--hg-soft); }
.hg-breadcrumbs a { color: var(--hg-link); }

/* article cards */
.hg-content .blog-items { gap: 20px; }
.hg-content .blog-item {
    border: 0; border-radius: var(--hg-radius); box-shadow: var(--hg-shadow); padding: 20px; gap: 22px;
    grid-template-columns: 190px minmax(0, 1fr); transition: box-shadow .2s, transform .2s;
}
.hg-content .blog-item:hover { box-shadow: var(--hg-shadow-hover); transform: translateY(-2px); }
.hg-content .blog-item .item-image img { width: 190px; height: 140px; border-radius: 10px; }
.hg-content .blog-item .item-content { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hg-content .item-title, .hg-content .blog-item .page-header h2 { font-size: 24px; font-weight: 700; line-height: 1.35; margin: 0 0 8px; color: var(--hg-navy); }
.hg-content .blog-item .page-header h2 a { color: var(--hg-navy); }
.hg-content .blog-item .page-header h2 a:hover, .hg-content .blog-item .page-header h2 a:focus-visible { color: var(--hg-link); }
.hg-content .article-info { font-size: 13.5px; color: var(--hg-soft); gap: 4px 18px; margin: 0 0 10px; }
.hg-content .article-info [class^="icon-"], .hg-content .article-info [class*=" icon-"] { color: #8a97ab; }
.hg-content .hg-excerpt { font-size: 16px; line-height: 1.75; color: var(--hg-ink); margin: 0 0 14px; }
.hg-content .readmore { margin: auto 0 0; }
.hg-content .readmore .btn, .hg-content p.readmore a.btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; border: 1.5px solid var(--hg-link); border-radius: 999px;
    color: var(--hg-link); font-weight: 600; font-size: 14.5px; transition: background-color .2s, color .2s;
}
.hg-content .readmore .btn:hover, .hg-content .readmore .btn:focus-visible { background: var(--hg-link); color: #fff; text-decoration: none; }
.hg-content .item-page { border-radius: var(--hg-radius); box-shadow: var(--hg-shadow); padding: 24px 28px; }

/* side boxes: white cards */
.hg-panel { background: #fff; border-radius: var(--hg-radius); box-shadow: var(--hg-shadow); }
.hg-panel__header h3 { color: var(--hg-navy); font-size: 17px; font-weight: 700; padding: 16px 18px 6px; }
.hg-panel__body { padding: 6px 10px 12px; }
.hg-panel .mod-menu { margin: 0; }
.hg-panel .mod-menu li > a, .hg-panel .mod-menu li > span { padding: 9px 12px; border-radius: 8px; font-size: 15px; color: var(--hg-ink); }
.hg-panel .mod-menu li > a:hover { background: #e8f1fb; color: var(--hg-link-hover); }
.hg-panel .mod-menu li.current > a, .hg-panel .mod-menu li.active > a { background: var(--hg-side-active); color: #fff; font-weight: 600; }

/* forms / buttons / pagination */
.hg-site .btn { border-radius: 999px; font-weight: 600; }
.hg-site .form-control, .hg-site .form-select { border-radius: 10px; }
.hg-content .pagination .page-link { border-radius: 10px; }

/* footer */
.hg-footer { background: #fff; }

@media (max-width: 767px) {
    .hg-content .blog-item { grid-template-columns: 1fr; padding: 16px; }
    .hg-content .blog-item .item-image img { width: 100%; height: 190px; }
    .hg-content .item-title, .hg-content .blog-item .page-header h2 { font-size: 21px; }
}
.hg-content .item-title a { color: var(--hg-navy); }
.hg-content .item-title a:hover, .hg-content .item-title a:focus-visible { color: var(--hg-link); }
.hg-content .item-content:has(> .item-title) { display: flex; flex-direction: column; align-items: flex-start; }
.hg-panel .mod-menu li > a, .hg-panel .mod-menu li > span { padding: 6px 12px; line-height: 1.5; }
.hg-panel .mod-menu > li > a, .hg-panel .mod-menu > li > span { font-weight: 700; color: var(--hg-navy); margin-top: 6px; }
.hg-panel .mod-menu li li > a, .hg-panel .mod-menu li li > span { font-weight: 400; color: var(--hg-ink); margin-top: 0; font-size: 14.5px; }
.hg-panel .mod-menu li.current > a, .hg-panel .mod-menu li.active > a { color: #fff; }
.hg-header__search .input-group > .form-control { border-radius: 0 999px 999px 0; }
.hg-header__search .input-group > .btn { border-radius: 999px 0 0 999px; }

/* mod_forum_latest (home): one row per topic, title on top, meta below */
.mod-forum-latest__item { padding: .6rem 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.mod-forum-latest__item:last-child { border-bottom: 0; }
.mod-forum-latest__title { display: block; font-weight: 600; }
.mod-forum-latest__meta { display: block; }
.mod-forum-latest__links a + a { margin-inline-start: .25rem; }

/* ==========================================================================
   Google AdSense slots (2026-11-05) — chrome "hgad". Heights are reserved so the page does not jump (CLS) when an ad loads.
   Positions: ad-top (full width), ad-infeed (after the 3rd article), ad-sidebar (sticky, desktop column), ad-bottom (after content).
   ========================================================================== */
.hg-ad { margin: 0 0 20px; text-align: center; background: #fff; border-radius: var(--hg-radius); box-shadow: var(--hg-shadow); padding: 6px 8px 10px; overflow: hidden; clear: both; }
.hg-ad__label { display: block; font-size: 11px; line-height: 1.6; color: var(--hg-soft); letter-spacing: .02em; }
.hg-ad__slot { display: block; width: 100%; min-height: 250px; }
.hg-ad__slot .adsbygoogle { display: block; width: 100%; }
.hg-ad--top .hg-ad__slot    { min-height: 100px; }
.hg-ad--infeed .hg-ad__slot { min-height: 280px; }
.hg-ad--sidebar .hg-ad__slot { min-height: 600px; }
.hg-ad--bottom .hg-ad__slot { min-height: 300px; }
.hg-infeed-ad { grid-column: 1 / -1; }
.hg-infeed-ad .hg-ad { margin-bottom: 0; }
/* an unfilled slot collapses (AdSense sets data-ad-status="unfilled") */
.hg-ad:has(.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
/* keep the sticky sidebar ad under the sticky header */
.hg-sidebar__sticky { position: sticky; top: 90px; }
.hg-sidebar__sticky .hg-ad { margin-bottom: 0; }
@media (max-width: 991px) {
    .hg-sidebar__sticky { position: static; }
    .hg-ad--sidebar .hg-ad__slot { min-height: 280px; }
    .hg-ad--bottom .hg-ad__slot { min-height: 280px; }
}
@media (max-width: 767px) {
    .hg-ad { margin-inline: -4px; padding-inline: 4px; border-radius: 8px; }
    .hg-ad--infeed .hg-ad__slot { min-height: 250px; }
}
@media print { .hg-ad { display: none !important; } }

/* Home on phones: notice-board cards in 2 columns (not 4 tall cards), tighter panels */
@media (max-width: 575px) {
    .hg-site .com-noticeboard.mod-noticeboard .noticeboard-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hg-site .mod-noticeboard .noticeboard-card-title { font-size: 15px; }
    .hg-panel__body { padding-inline: 8px; }
    .hg-main { padding-block: 14px 32px; }
}

/* ----- legal links in footer ----- */
.hg-footer__legal { margin-top: 8px; }
.hg-footer__legal .mod-menu, .hg-footer__legal ul { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.hg-footer__legal a { color: inherit; text-decoration: underline; padding: 6px 2px; display: inline-block; }
.hg-footer__legal a:hover, .hg-footer__legal a:focus-visible { color: var(--hg-accent-dark); }

/* ----- tap targets >= 24px (WCAG 2.5.8) for list/sidebar links and menu toggles ----- */
.mod-articleslatest a, .mod-articlescategories a, .mod-forum-latest__links a, .mod-breadcrumbs__item a { display: inline-block; min-height: 24px; padding-block: 2px; }
.mod-menu__toggle-sub { min-width: 24px; min-height: 24px; }

/* Consent banner (GA4 + Facebook Pixel load only after "accept") */
.hg-consent { position: fixed; inset-inline: 0; bottom: 0; z-index: 1080; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .9rem 1.25rem; background: #fff; color: #222; border-top: 3px solid var(--hg-frame, #1b379b); box-shadow: 0 -4px 18px rgba(0, 0, 0, .18); font-size: 1rem; }
.hg-consent p { margin: 0; flex: 1 1 22rem; }
.hg-consent a { color: var(--hg-link-hover, #2a6496); text-decoration: underline; }
.hg-consent button { min-height: 44px; padding: .4rem 1.2rem; border-radius: 999px; border: 2px solid var(--hg-frame, #1b379b); font: inherit; cursor: pointer; }
.hg-consent__yes { background: var(--hg-frame, #1b379b); color: #fff; }
.hg-consent__no { background: #fff; color: var(--hg-frame, #1b379b); }
.hg-consent button:focus-visible, .hg-consent a:focus-visible { outline: 3px solid #fcbe28; outline-offset: 2px; }
@media print { .hg-consent { display: none !important; } }

/* ==========================================================================
   Mobile pass (2026-11-05): header search matches the pill style; fewer / quieter ad slots on phones.
   The search module outputs legacy markup (form.form-inline > input.inputbox + button.btn), not .input-group.
   ========================================================================== */
.hg-header__search form { display: flex; align-items: stretch; gap: 0; }
.hg-header__search .inputbox { flex: 1 1 auto; min-width: 0; width: auto; height: 42px; box-sizing: border-box; border: 1px solid #cfd8e6; background: #fff; padding-inline: 16px; font: inherit; border-radius: 0 999px 999px 0; }
.hg-header__search .btn { flex: 0 0 auto; height: 42px; padding: 0 20px; border-radius: 999px 0 0 999px; }
[dir="ltr"] .hg-header__search .inputbox { border-radius: 999px 0 0 999px; }
[dir="ltr"] .hg-header__search .btn { border-radius: 0 999px 999px 0; }
.hg-header__search .inputbox:focus-visible { outline: 3px solid #fcbe28; outline-offset: 1px; }
@media (max-width: 767px) {
    /* ads on phones: keep ONLY the in-feed slot (after the 3rd article); no sidebar/bottom slots, no card chrome */
    .hg-ad--sidebar, .hg-ad--top, .hg-ad--bottom { display: none !important; }
    .hg-ad { box-shadow: none; background: transparent; padding-block: 0; margin-block: 8px; }
    .hg-ad--infeed .hg-ad__slot { min-height: 0; }
}

/* ==========================================================================
   Mobile v2 (2026-11-05): one compact header bar (menu | logo | search icon), search row opens on tap,
   short banner on home only, ticker + notice-board as compact strips, tighter article cards.
   ========================================================================== */
.hg-header__searchbtn { display: none; }
@media (max-width: 767px) {
    .hg-header__inner { flex-wrap: wrap; gap: 8px 10px; padding-block: 8px; }
    .hg-header__toggle { order: 0; width: 44px; height: 44px; flex: 0 0 auto; }
    .hg-header__logo { order: 1; flex: 1 1 auto; min-width: 0; }
    .hg-partner { display: none; }
    .hg-logo__img { width: 100%; max-width: 230px; height: auto; }
    .hg-header__searchbtn { order: 2; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #e8f1fb; color: var(--hg-navy); cursor: pointer; }
    .hg-header__searchbtn[aria-expanded="true"] { background: var(--hg-navy); color: #fff; }
    .hg-header__searchbtn:focus-visible { outline: 3px solid #fcbe28; outline-offset: 2px; }
    .hg-header__search { order: 3; flex: 1 1 100%; display: none; margin: 0; padding-bottom: 4px; }
    .hg-header.has-search-open .hg-header__search { display: block; }
    .hg-header__search .inputbox { font-size: 16px; }

    /* banner: a slim strip, home page only */
    body:not(.is-home) .hg-hero--banner { display: none; }
    .hg-hero--banner .hg-banner { height: 64px; min-height: 0; object-fit: cover; object-position: center; }

    /* drawer: comfortable tap rows */
    .hg-menu__item > a, .hg-menu__item > span:not(.hg-menu__caret) { min-height: 48px; font-size: 16px; padding: 12px 18px; }

    .hg-main { padding-block: 12px 28px; }
    .hg-breadcrumbs { white-space: nowrap; overflow-x: auto; margin-bottom: 10px; }
    .hg-breadcrumbs ol, .hg-breadcrumbs .breadcrumb { flex-wrap: nowrap; }

    /* ticker: compact */
    .hg-ticker { margin-bottom: .6rem; font-size: 14px; }
    .hg-ticker__label { padding: .35rem .6rem; font-size: 13px; }
    .hg-ticker__item { padding: .35rem 0; }

    /* notice board on phones: one horizontal swipe strip, no tall grid */
    .hg-site .com-noticeboard.mod-noticeboard .noticeboard-results { display: flex; grid-template-columns: none; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; margin-bottom: 0; -webkit-overflow-scrolling: touch; }
    .hg-site .com-noticeboard.mod-noticeboard .noticeboard-card { flex: 0 0 150px; scroll-snap-align: start; }
    .hg-site .mod-noticeboard .noticeboard-card-title { font-size: 14px; line-height: 1.35; }
    .hg-site .mod-noticeboard .noticeboard-thumb { aspect-ratio: 16 / 10; }
    .hg-panel__header h3 { font-size: 16px; padding: 12px 14px 4px; }

    /* article cards */
    .hg-content .blog-items { gap: 12px; }
    .hg-content .blog-item { padding: 14px; gap: 10px; }
    .hg-content .blog-item .item-image img { height: 160px; }
    .hg-content .item-title, .hg-content .blog-item .page-header h2 { font-size: 19px; margin-bottom: 4px; }
    .hg-content .article-info { font-size: 12.5px; margin-bottom: 6px; }
    .hg-content .hg-excerpt { font-size: 15px; line-height: 1.6; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .hg-content .readmore .btn, .hg-content p.readmore a.btn { border: 0; padding: 6px 0; min-height: 44px; }
    .hg-content .item-page { padding: 16px; }
}
@media (max-width: 767px) {
    .hg-header__logo { flex: 1 1 0; }
    .hg-logo { min-width: 0; }
    .hg-logo__img { width: 100%; max-width: 220px; }
    .hg-header__inner { flex-wrap: wrap; }
    .hg-header__logo, .hg-header__toggle, .hg-header__searchbtn { margin: 0; }
}
/* the drawer lives inside the header's stacking context (z 1000): keep the dimming overlay below it */
@media (max-width: 767px) { .hg-overlay.is-active { z-index: 900; } }
@media (max-width: 767px) {
    .hg-breadcrumbs { scrollbar-width: none; }
    .hg-breadcrumbs::-webkit-scrollbar { display: none; }
    .hg-content h1, .hg-content .page-header h1 { font-size: 24px; line-height: 1.3; }
}

/* ==========================================================================
   Mobile v3 (2026-11-05, docs/mobile-ux-spec.md): content first, short fixed parts.
   - home: news line (quiet) -> articles -> notice board -> forum  (display:contents flattens the columns so "order" works)
   - compact article cards (title + date/category + small thumb), no sidebar, short footer, notice-board list as rows
   ========================================================================== */
@media (max-width: 767px) {
    /* fixed parts */
    .hg-sidebar { display: none; }
    .hg-footer__main { padding-block: 16px 4px; }
    .hg-footer__main .hg-grid__item:not(:first-child) { display: none; }
    .hg-footer__main .hg-grid__item:first-child img { display: none; }
    .hg-footer__main .hg-grid__item:first-child p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 14px; }
    .hg-footer__bottom { padding-block: 8px; }

    /* home order */
    .is-home .hg-main > .hg-container { display: flex; flex-direction: column; }
    .is-home .hg-content-area, .is-home .hg-content { display: contents; }
    .is-home .hg-panel:has(.hg-ticker) { order: 1; }
    .is-home .blog-featured { order: 2; margin-bottom: 16px; }
    .is-home .hg-panel:has(.mod-noticeboard) { order: 3; }
    .is-home .hg-panel:has(.mod-forum-latest) { order: 4; }

    /* news: a quiet, swipeable line instead of a moving banner */
    .hg-panel:has(.hg-ticker) { background: none; box-shadow: none; border-radius: 0; margin-bottom: 10px; }
    .hg-panel:has(.hg-ticker) .hg-panel__body { padding: 0; }
    .hg-panel:has(.hg-ticker) .hg-panel__header { display: none; }
    .hg-ticker { border: 0; border-bottom: 1px solid #dde4ef; border-radius: 0; background: transparent; box-shadow: none; margin: 0; font-size: 13px; }
    .hg-ticker__label { background: none; color: var(--hg-soft); font-size: 12px; font-weight: 600; padding: .3rem 0; padding-inline-end: .6rem; }
    .hg-ticker__label .fas { display: none; }
    .hg-ticker__viewport { overflow-x: auto; scrollbar-width: none; }
    .hg-ticker__viewport::-webkit-scrollbar { display: none; }
    .hg-ticker__track { animation: none; padding-inline-start: 0; }
    .hg-ticker__item { padding: .3rem 0; margin-inline-end: 1.4rem; }
    .hg-ticker__item a { color: var(--hg-soft); }
    .hg-ticker__src { display: none; }
    .hg-ticker__toggle { display: none; }

    /* compact article cards (home + category lists) */
    .hg-content .blog-items { gap: 10px; }
    .hg-content .blog-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "c img"; align-items: start; gap: 12px; padding: 12px; }
    .hg-content .blog-item:not(:has(.item-image)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "c"; }
    .hg-content .blog-item:hover { transform: none; }
    .hg-content .blog-item .item-image { grid-area: img; margin: 0; float: none; }
    .hg-content .blog-item .item-image img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
    .hg-content .blog-item .item-content { grid-area: c; }
    .hg-content .item-title, .hg-content .blog-item .page-header h2 { font-size: 16px; line-height: 1.4; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .hg-content .blog-item .item-title a::after, .hg-content .blog-item .page-header h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--hg-radius); }
    .hg-content .blog-item .hg-excerpt, .hg-content .blog-item .readmore, .hg-content .blog-item .createdby, .hg-content .blog-item .article-info-term { display: none; }
    .hg-content .blog-item .article-info { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 12px; margin: 0; }
    .hg-content .blog-item .article-info dd { margin: 0; }
    .hg-content .blog-item .article-info a { position: relative; z-index: 1; }
    .hg-infeed-ad .hg-ad { margin-block: 4px; }

    /* article page: one-line meta, no author line */
    .hg-content .item-page .createdby, .hg-content .item-page .article-info-term { display: none; }
    .hg-content .item-page .article-info { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 13px; }

    /* notice-board list page: rows (thumb + text) instead of tall cards, posting button floats */
    .noticeboard-list .noticeboard-results { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .noticeboard-list .noticeboard-card { flex-direction: row; }
    .noticeboard-list .noticeboard-thumb { flex: 0 0 96px; aspect-ratio: auto; min-height: 96px; font-size: 1.3rem; }
    .noticeboard-list .noticeboard-card-body { padding: .55rem .75rem; gap: .15rem; }
    .noticeboard-list .noticeboard-card-title { font-size: 15px; line-height: 1.35; }
    .noticeboard-list .noticeboard-badge { font-size: 11.5px; padding: 1px 8px; align-self: flex-start; }
    .noticeboard-list .noticeboard-price { font-size: 15px; }
    .noticeboard-list .noticeboard-meta, .noticeboard-list .noticeboard-card-foot { font-size: 12.5px; margin: 0; }
    .noticeboard-list .noticeboard-search .row { --bs-gutter-y: .5rem; }
    .noticeboard-list .noticeboard-search .form-label { font-size: 13px; margin-bottom: 2px; }
    .noticeboard-list .noticeboard-cta .btn-success { position: fixed; z-index: 900; bottom: 16px; inset-inline-end: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); padding: 10px 20px; }

    /* "more on this topic" + forum box under an article */
    .hg-related { margin-top: 16px; }
}

/* "more on this topic" + forum box under an article (all widths) */
.hg-related { margin-top: 24px; }
.hg-related__title { font-size: 18px; font-weight: 700; color: var(--hg-navy); margin: 0 0 10px; }
.hg-related__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.hg-related__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: center; background: #fff; border-radius: var(--hg-radius); box-shadow: var(--hg-shadow); padding: 10px 12px; }
.hg-related__item:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.hg-related__item a { font-weight: 700; color: var(--hg-navy); line-height: 1.4; }
.hg-related__item a::after { content: ""; position: absolute; inset: 0; }
.hg-related__item img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.hg-related__date { display: block; font-size: 12px; color: var(--hg-soft); }
.hg-forum-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #e8f1fb; border-radius: var(--hg-radius); padding: 14px 16px; }
.hg-forum-cta p { margin: 0; font-weight: 600; color: var(--hg-navy); }
.hg-forum-cta .btn { min-height: 44px; display: inline-flex; align-items: center; }
/* v3 fixes: mod_hgticker's own CSS loads after the template -> stronger selectors; card meta on one quiet line */
@media (max-width: 767px) {
    .hg-site .hg-ticker { border: 0; border-bottom: 1px solid #dde4ef; border-radius: 0; background: transparent; box-shadow: none; }
    .hg-site .hg-ticker__label { background: none; color: var(--hg-soft); font-size: 12px; font-weight: 600; padding: .3rem 0; padding-inline-end: .6rem; }
    .hg-site .hg-ticker__track { animation: none; padding-inline-start: 0; }
    .hg-site .hg-ticker__item a { color: var(--hg-soft); font-weight: 400; }
    .hg-site .hg-ticker__toggle, .hg-site .hg-ticker__src { display: none; }
    .hg-content .blog-item .article-info [class^="icon-"], .hg-content .blog-item .article-info [class*=" icon-"], .hg-content .blog-item .article-info .fa, .hg-content .blog-item .article-info .fas { display: none; }
    .hg-content .blog-item .article-info dd { white-space: nowrap; }
}
@media (max-width: 767px) { .hg-content .blog-items { margin: 0 0 10px; } .hg-content .blog-items.items-leading + .blog-items { margin-top: 0; } }
@media (max-width: 767px) {
    .hg-content .item-page .item-image { float: none; margin: 0 0 12px; }
    .hg-content .item-page .item-image img { width: 100%; height: auto; }
    /* the responsive sidebar ad unit is moved into the article (after the 3rd paragraph) by index.php */
    .hg-ad--sidebar.hg-ad--inarticle { display: block !important; margin-block: 16px; }
}
.hg-related { clear: both; }
@media (max-width: 767px) {
    /* notice-board search: 2 rows (text + button / category + city) instead of 4 stacked fields */
    .noticeboard-list .noticeboard-search { padding: 10px 12px; margin-bottom: 12px !important; }
    .noticeboard-list .noticeboard-search .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; margin: 0; }
    .noticeboard-list .noticeboard-search .row > * { width: auto; max-width: none; padding: 0; margin: 0; }
    .noticeboard-list .noticeboard-search .row > :nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
    .noticeboard-list .noticeboard-search .row > :nth-child(2) { grid-column: 1; grid-row: 2; }
    .noticeboard-list .noticeboard-search .row > :nth-child(3) { grid-column: 2 / 4; grid-row: 2; }
    .noticeboard-list .noticeboard-search .row > :nth-child(4) { grid-column: 3; grid-row: 1; align-self: end; }
    .noticeboard-list .noticeboard-search .form-control, .noticeboard-list .noticeboard-search .form-select { font-size: 16px; min-height: 42px; }
    .noticeboard-list .noticeboard-search .btn-link { display: none; }
}
/* pagination on phones: one row = first, prev, current, next, last; the page counter centred under it */
@media (max-width: 767px) {
    .hg-content .w-100:has(> .pagination__wrapper) { display: flex; flex-direction: column-reverse; align-items: center; margin-top: 8px; }
    .hg-content .w-100 > .counter { float: none !important; padding: 0 !important; margin: 0 0 8px; font-size: 13px; color: var(--hg-soft); }
    .hg-content .pagination { flex-wrap: nowrap; gap: 6px; margin: 0 0 6px !important; }
    .hg-content .pagination .page-item:not(.active):has(> a.page-link):not(:has([class*="icon-"])) { display: none; }
    .hg-content .pagination .page-link { min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
}

/* home on phones: only the 2 newest notice-board ads, side by side (no swipe strip) */
@media (max-width: 767px) {
    .hg-site .com-noticeboard.mod-noticeboard .noticeboard-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 10px; }
    .hg-site .com-noticeboard.mod-noticeboard .noticeboard-card { flex: none; }
    .hg-site .com-noticeboard.mod-noticeboard .noticeboard-card:nth-child(n+3) { display: none; }
}

/* ==========================================================================
   Desktop v3 (>=768px, 2026-11-05) — same logic as the phone layout:
   articles first, quiet news line, notice board + forum under the articles, compact article rows, lower banner, shorter footer.
   ========================================================================== */
@media (min-width: 768px) {
    /* banner: keep the brand image, less height (home 200px, inner pages a 110px strip) */
    .hg-hero--banner .hg-banner { height: 200px; object-fit: cover; object-position: center top; }
    body:not(.is-home) .hg-hero--banner .hg-banner { height: 110px; }

    /* home order: news line, articles (+ sidebar), then notice board */
    .is-home .hg-main > .hg-container { display: flex; flex-direction: column; }
    .is-home .hg-main > .hg-container > .hg-panel:has(.hg-ticker) { order: 1; }
    .is-home .hg-main > .hg-container > .hg-content-area { order: 2; }
    .is-home .hg-main > .hg-container > .hg-panel:has(.mod-noticeboard) { order: 3; margin-top: 20px; }
    .is-home .hg-main > .hg-container > .hg-ad { order: 4; }
    .is-home .hg-ad--bottom { display: none; }

    /* news: quiet line, still moving (pause button kept) */
    .hg-panel:has(.hg-ticker) { background: none; box-shadow: none; border-radius: 0; margin-bottom: 14px; }
    .hg-panel:has(.hg-ticker) .hg-panel__body { padding: 0; }
    .hg-panel:has(.hg-ticker) .hg-panel__header { display: none; }
    .hg-site .hg-ticker { border: 0; border-bottom: 1px solid #dde4ef; border-radius: 0; background: transparent; box-shadow: none; margin: 0; font-size: 14px; }
    .hg-site .hg-ticker__label { background: none; color: var(--hg-soft); font-size: 13px; font-weight: 600; padding: .35rem 0; padding-inline-end: .8rem; }
    .hg-site .hg-ticker__label .fas { display: none; }
    .hg-site .hg-ticker__item { padding: .35rem 0; }
    .hg-site .hg-ticker__item a { color: var(--hg-soft); font-weight: 400; }
    .hg-site .hg-ticker__toggle { background: none; border: 0; color: var(--hg-soft); }

    /* compact article rows: image 160x110, title, one meta line, 2-line excerpt, text link */
    .hg-content .blog-items { gap: 12px; margin: 0 0 12px; }
    .hg-content .blog-item { position: relative; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; padding: 14px 16px; }
    .hg-content .blog-item:not(:has(.item-image)) { grid-template-columns: minmax(0, 1fr); }
    .hg-content .blog-item:hover { transform: none; }
    .hg-content .blog-item .item-image { margin: 0; float: none; }
    .hg-content .blog-item .item-image img { width: 160px; height: 110px; object-fit: cover; border-radius: 8px; }
    .hg-content .item-title, .hg-content .blog-item .page-header h2 { font-size: 19px; line-height: 1.4; margin: 0 0 4px; }
    .hg-content .blog-item .item-title a::after, .hg-content .blog-item .page-header h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--hg-radius); }
    .hg-content .blog-item .createdby, .hg-content .blog-item .article-info-term, .hg-content .blog-item .readmore { display: none; }
    .hg-content .blog-item .article-info { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 13px; margin: 0 0 6px; }
    .hg-content .blog-item .article-info dd { margin: 0; }
    .hg-content .blog-item .article-info a { position: relative; z-index: 1; }
    .hg-content .blog-item .article-info [class^="icon-"], .hg-content .blog-item .article-info [class*=" icon-"] { display: none; }
    .hg-content .blog-item .hg-excerpt { font-size: 15px; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* article page: no author line, meta in one row */
    .hg-content .item-page .createdby, .hg-content .item-page .article-info-term { display: none; }
    .hg-content .item-page .article-info { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 13.5px; }

    /* footer: about + guide categories only (the "new articles" and "tours" lists repeat the content above) */
    .hg-footer__main .hg-grid { grid-template-columns: 2fr 1fr; }
    .hg-footer__main .hg-grid__item:nth-child(2), .hg-footer__main .hg-grid__item:nth-child(4) { display: none; }
}

/* ==========================================================================
   Desktop header + footer (2026-11-05): header ~300px instead of ~430px before content; banner framed in brand blue on wide screens;
   footer = 2 tidy columns (about | guide topics in 2 columns) + one bottom row (copyright | legal links).
   ========================================================================== */
@media (min-width: 768px) {
    .hg-header__inner { padding-block: 8px; }
    .hg-logo__img { width: 320px; }
    .hg-partner__img { width: 100px; }
    .hg-menu__item > a, .hg-menu__item > span:not(.hg-menu__caret), .hg-menu__item > .nav-header { padding: 11px 18px; }
    .hg-nav { border-top-width: 3px; }
    .hg-hero--banner { background: linear-gradient(90deg, #0b3f9e 0%, #1660c8 50%, #0b3f9e 100%); }
    .hg-hero--banner .hg-banner { height: 170px; }
    body:not(.is-home) .hg-hero--banner .hg-banner { height: 96px; }

    .hg-footer { background: #fff; border-top: 3px solid var(--hg-frame); }
    .hg-footer__main { padding-block: 26px 10px; }
    .hg-footer__main .hg-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; }
    .hg-footer__main .mod-custom > p:not(:first-child), .hg-footer__main #ckimgrsz { display: none; }
    .hg-footer__main .mod-custom img { display: block; width: 300px !important; max-width: 100%; margin: 0 0 10px; }
    .hg-footer__main .mod-custom span { font-size: 14px !important; line-height: 1.7 !important; color: var(--hg-soft) !important; font-family: inherit !important; }
    .hg-footer-module__title { font-size: 16px; font-weight: 700; color: var(--hg-navy); margin: 4px 0 10px; }
    .hg-footer .mod-articlescategories { columns: 2; column-gap: 28px; }
    .hg-footer .mod-articlescategories li { break-inside: avoid; padding: 0; }
    .hg-footer .mod-articlescategories a { display: inline-block; padding: 4px 0; color: var(--hg-ink); font-size: 14.5px; }
    .hg-footer .mod-articlescategories a:hover, .hg-footer .mod-articlescategories a:focus-visible { color: var(--hg-link); text-decoration: underline; }

    .hg-footer__bottom { padding-block: 10px; background: var(--hg-bg); }
    .hg-footer__bottom > .hg-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
    .hg-footer__legal { margin: 0; }
    .hg-footer__legal a { text-decoration: none; color: var(--hg-soft); }
    .hg-footer__legal a:hover, .hg-footer__legal a:focus-visible { text-decoration: underline; color: var(--hg-link); }
}
/* side menu: open/close arrow on the same line as its item, tighter rows */
.hg-panel .mod-menu > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.hg-panel .mod-menu > li > a, .hg-panel .mod-menu > li > span { flex: 1 1 auto; margin-top: 2px; }
.hg-panel .mod-menu > li > .mod-menu__toggle-sub { flex: 0 0 auto; background: none; border: 0; color: var(--hg-link); padding: 4px 8px; }
.hg-panel .mod-menu > li > .mod-menu__sub { flex: 1 1 100%; }

/* contrast: ".hg-site a" (blue link colour) was overriding white text on link-buttons (e.g. "פרסום מודעה"); white on #2e6b2e = 6.3:1 */
.hg-site a.btn-success { color: #fff; background-color: #2e6b2e; border-color: #2e6b2e; }
.hg-site a.btn-success:hover, .hg-site a.btn-success:focus-visible { color: #fff; background-color: #1f4d1f; border-color: #1f4d1f; text-decoration: none; }
/* desktop footer, final: all 4 columns back (about | guide topics | new articles | tours), each list max 5 items */
@media (min-width: 768px) {
    .hg-footer__main .hg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
    .hg-footer__main .hg-grid__item:nth-child(2), .hg-footer__main .hg-grid__item:nth-child(4) { display: block; }
    .hg-footer__main .hg-grid__item:empty { display: none; }
    .hg-footer .mod-articlescategories { columns: 1; }
    .hg-footer .mod-articleslatest li:nth-child(n+6), .hg-footer .mod-articlescategory li:nth-child(n+6) { display: none; }
    .hg-footer .mod-articleslatest a, .hg-footer .mod-articlescategory a, .hg-footer .category-module a { display: block; padding: 4px 0; color: var(--hg-ink); font-size: 14.5px; line-height: 1.45; }
    .hg-footer .mod-articleslatest a:hover, .hg-footer .mod-articlescategory a:hover, .hg-footer .category-module a:hover { color: var(--hg-link); text-decoration: underline; }
}
@media (min-width: 992px) {
    .hg-footer__main .hg-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
    .hg-footer__main .mod-custom img { width: 260px !important; }
}
