/* ZKTeco home page - Design A (Corporate Mega Menu)
   Loaded only on the home page. Everything is scoped under .ha-site / .ha-* so inner pages are not affected.
   Theme: green #7ac143, charcoal #212121 / #393c3f / #474b4f, light #f4f5f5 */

.ha-site { background:#fff; color:#212121; font-family:'Roboto',sans-serif; }
.ha-site a { text-decoration:none; }
.ha-site a:hover { text-decoration:none; }
.ha-site .ha-wrap { max-width:1200px; margin:0 auto; padding-left:24px; padding-right:24px; }

/* ---------- utility bar ---------- */
.ha-site .ha-util { background:#2e2e2e; font-size:13px; color:#d4d4d4; }
.ha-site .ha-util .ha-wrap { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; padding-top:9px; padding-bottom:9px; }
.ha-site .ha-util a { color:#d4d4d4; }
.ha-site .ha-util a:hover { color:#7ac143; }
.ha-site .ha-util .ha-contact { display:flex; flex-wrap:wrap; gap:22px; }
.ha-site .ha-util .ha-lang a.is-on { color:#7ac143; font-weight:700; }
.ha-site .ha-util a[href^="tel"] { direction:ltr; unicode-bidi:embed; display:inline-block; }

/* ---------- header + mega menu ---------- */
.ha-site .ha-header { background:#212121; position:relative; z-index:1000; }
.ha-site .ha-head-in { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding-top:14px; padding-bottom:14px; }
.ha-site .ha-logo img { height:44px; width:auto; display:block; margin:0; }
.ha-site .ha-nav { display:flex; flex-wrap:wrap; gap:4px; margin:0; padding:0; list-style:none; }
.ha-site .ha-item { position:static; list-style:none; }
.ha-site .ha-mbtn { font-family:inherit; font-size:16px; font-weight:500; background:transparent; border:0; border-bottom:3px solid transparent; color:#fff; padding:12px 14px; cursor:pointer; display:inline-block; }
.ha-site a.ha-mbtn:hover { color:#7ac143; }
.ha-site .ha-mbtn:hover, .ha-site .ha-item.is-open > .ha-mbtn, .ha-site .ha-item.is-active > .ha-mbtn { color:#7ac143; border-bottom-color:#7ac143; }
.ha-site .ha-mbtn .ha-caret { font-size:10px; margin-left:3px; }
.ha-site .ha-panel { display:none; position:absolute; left:0; right:0; top:100%; background:#fff; box-shadow:0 24px 40px rgba(33,33,33,.22); border-top:4px solid #7ac143; }
.ha-site .ha-item.is-open > .ha-panel { display:block; }
.ha-site .ha-panel-in { max-width:1200px; margin:0 auto; padding:28px 24px 32px; }
.ha-site .ha-viewall { display:inline-block; margin-bottom:18px; font-weight:700; font-size:14px; color:#3f7a12; }
.ha-site .ha-viewall:hover { color:#2b5a0a; }
.ha-site .ha-cols { column-width:210px; column-gap:28px; }
.ha-site .ha-col { break-inside:avoid; -webkit-column-break-inside:avoid; page-break-inside:avoid; margin-bottom:24px; }
.ha-site .ha-col-title { display:block; font-weight:700; font-size:16px; color:#212121; padding-bottom:8px; border-bottom:2px solid #e5e5e5; margin-bottom:10px; }
.ha-site .ha-col-title:hover { color:#3f7a12; }
.ha-site .ha-sub { list-style:none; margin:0; padding:0; }
.ha-site .ha-sub .ha-sub { padding-left:14px; }
.ha-site .ha-sub a { display:block; font-size:14px; color:#474b4f; padding:4px 0; }
.ha-site .ha-sub a:hover { color:#3f7a12; }
.ha-site .ha-search { display:flex; align-items:center; background:#393c3f; border-radius:4px; padding:0 4px 0 12px; margin:0; }
.ha-site .ha-search input { font-family:inherit; background:transparent; border:0; color:#fff; padding:10px 6px; width:120px; outline:none; box-shadow:none; height:auto; }
.ha-site .ha-search button { background:transparent; border:0; padding:8px; cursor:pointer; display:flex; }
.ha-site .ha-burger { display:none; background:#7ac143; color:#212121; border:0; font-size:20px; padding:6px 14px; border-radius:4px; cursor:pointer; }

/* ---------- hero slider (keeps the existing Bootstrap carousel + admin banners) ---------- */
.ha-site #main-slider { margin-top:0; background:#e3e4e5; }
.ha-site .carousel-inner .bannerHeight { background:#e3e4e5; }
.ha-site .carousel-inner .bannerHeight img { width:100%; height:auto; aspect-ratio:2.2 / 1; object-fit:cover; object-position:center; display:block; }
.ha-site #main-slider .prev, .ha-site #main-slider .next { display:flex !important; align-items:center; justify-content:center; top:50%; margin-top:-26px; width:52px; height:52px; border-radius:50%; background:rgba(33,33,33,.78); color:#7ac143; font-size:28px; line-height:1; }
.ha-site #main-slider .prev:hover, .ha-site #main-slider .next:hover { background:#7ac143; color:#212121; }
.ha-site #main-slider .prev { left:20px; }
.ha-site #main-slider .next { right:20px; }
.ha-site #main-slider .carousel-indicators { bottom:14px; }
.ha-site #main-slider .carousel-indicators li { width:10px; height:10px; border:0; border-radius:5px; background:rgba(33,33,33,.45); margin:0 4px; }
.ha-site #main-slider .carousel-indicators li.active { width:30px; height:10px; background:#7ac143; margin:0 4px; }

/* ---------- scrolling award ticker ---------- */
@keyframes haMarq { from { transform:translateX(0); } to { transform:translateX(-50%); } }
.ha-site .ha-ticker { background:#7ac143; color:#212121; overflow:hidden; border-top:4px solid #212121; border-bottom:4px solid #212121; }
.ha-site .ha-marq { display:flex; width:max-content; animation:haMarq 38s linear infinite; }
.ha-site .ha-ticker:hover .ha-marq { animation-play-state:paused; }
.ha-site .ha-marq span { padding:16px 28px; font-weight:900; font-size:20px; letter-spacing:1px; white-space:nowrap; text-transform:uppercase; }
.ha-site .ha-marq span i { font-style:normal; margin-left:28px; }

/* ---------- section headings ---------- */
.ha-site .ha-h2 { margin:0 0 28px; font-size:38px; font-weight:900; letter-spacing:-1px; color:#212121; }
.ha-site .ha-h2 em { font-style:normal; color:#3f7a12; }

/* ---------- intro ---------- */
.ha-site .ha-intro { position:relative; padding-top:80px; }
.ha-site .ha-intro .ha-rings { position:absolute; right:0; top:40px; opacity:.5; pointer-events:none; }
.ha-site .ha-intro .customcss { position:relative; width:100%; max-width:920px; margin:0 auto; text-align:center; }
.ha-site .ha-intro .customcss h1 { margin:0 0 18px; font-size:38px; line-height:1.15; font-weight:300; color:#3f7a12; }
.ha-site .ha-intro .customcss h2 { font-size:28px; font-weight:300; color:#3f7a12; margin:26px 0 12px; }
.ha-site .ha-intro .customcss h3 { font-size:20px; font-weight:700; color:#212121; margin:20px 0 8px; }
.ha-site .ha-intro .customcss p { font-size:17px; line-height:1.7; color:#474b4f; }
.ha-site .ha-intro .customcss a { color:#212121 !important; }
.ha-site .ha-intro .customcss a:hover { color:#3f7a12 !important; }
.ha-site .ha-intro .customcss summary { display:inline-block; background:#7ac143; color:#212121; border:0; padding:11px 22px; border-radius:4px; font-weight:700; font-size:15px; cursor:pointer; list-style:none; }
.ha-site .ha-intro .customcss summary::-webkit-details-marker { display:none; }
.ha-site .ha-intro .customcss details { margin-top:6px; }

/* ---------- products ---------- */
.ha-site .ha-sec { padding-top:72px; }
.ha-site .ha-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:22px; }
.ha-site .ha-pt { overflow:hidden; border-radius:10px; display:block; background:#212121; transition:box-shadow .25s ease, transform .25s ease; }
.ha-site .ha-pt img { display:block; width:100%; transition:transform .5s ease; }
.ha-site .ha-pt:hover { box-shadow:0 18px 36px rgba(33,33,33,.28); transform:translateY(-4px); }
.ha-site .ha-pt:hover img { transform:scale(1.07); }

/* ---------- news + preview ---------- */
.ha-site .ha-news-row { display:flex; flex-wrap:wrap; gap:40px; padding-top:80px; }
.ha-site .ha-news-main { flex:2 1 600px; min-width:0; }
.ha-site .ha-news-side { flex:1 1 320px; min-width:0; }
.ha-site .ha-news-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:22px; }
.ha-site .ha-newscard { display:flex; gap:16px; background:#fff; border:1px solid #e5e5e5; border-radius:10px; overflow:hidden; transition:transform .25s ease, box-shadow .25s ease; }
.ha-site .ha-newscard:hover { transform:translateY(-6px); box-shadow:0 16px 32px rgba(33,33,33,.14); }
.ha-site .ha-newscard img { width:120px; height:auto; object-fit:cover; flex-shrink:0; }
.ha-site .ha-newscard .ha-nbody { padding:16px 16px 16px 0; min-width:0; }
.ha-site .ha-newscard .ha-ndate { font-size:12px; color:#474b4f; margin-bottom:6px; }
.ha-site .ha-newscard h4 { font-size:15px; font-weight:700; line-height:1.3; margin:0 0 8px; color:#212121; }
.ha-site .ha-newscard p { font-size:13px; color:#474b4f; margin:0 0 8px; line-height:1.5; }
.ha-site .ha-newscard .ha-more { font-weight:700; font-size:14px; color:#3f7a12; }
.ha-site .ha-newscard .ha-more:hover { color:#2b5a0a; }
.ha-site .ha-video { position:relative; padding-bottom:62%; height:0; border-radius:10px; overflow:hidden; background:#212121; }
.ha-site .ha-video iframe { position:absolute; left:0; top:0; width:100%; height:100%; border:0; }

/* ---------- support ---------- */
.ha-site .ha-support { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:20px; }
.ha-site .ha-sup { background:#f4f5f5; border-bottom:5px solid #7ac143; border-radius:10px; padding:30px 18px; text-align:center; color:#212121; display:block; transition:transform .25s ease, box-shadow .25s ease; }
.ha-site .ha-sup:hover { transform:translateY(-6px); box-shadow:0 16px 32px rgba(33,33,33,.14); color:#212121; }
.ha-site .ha-sup img { width:60px; height:60px; object-fit:contain; display:block; margin:0 auto 16px; }
.ha-site .ha-sup h3 { margin:0; font-size:16px; font-weight:700; line-height:1.3; }
.ha-site .ha-center { text-align:center; }

/* ---------- footer ---------- */
.ha-site .ha-footer { background:#212121; margin-top:88px; color:#d4d4d4; }
.ha-site .ha-footer .ha-fin { display:flex; flex-wrap:wrap; gap:40px; padding-top:56px; padding-bottom:32px; }
.ha-site .ha-footer .ha-fcols { flex:1 1 640px; min-width:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:28px; }
.ha-site .ha-footer .ha-fside { flex:0 0 250px; width:250px; max-width:100%; }
.ha-site .ha-footer h3 { color:#fff; font-weight:700; font-size:17px; padding-bottom:8px; border-bottom:2px solid #7ac143; margin:0 0 14px; display:inline-block; }
.ha-site .ha-footer ul { list-style:none; margin:0; padding:0; }
.ha-site .ha-footer li { padding:4px 0; font-size:14px; }
.ha-site .ha-footer a { color:#d4d4d4; }
.ha-site .ha-footer a:hover { color:#7ac143; }
.ha-site .ha-badges { min-width:0; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; align-content:start; }
.ha-site .ha-badges img { width:100%; height:auto; display:block; background:#393c3f; border-radius:6px; padding:8px; box-sizing:border-box; }
.ha-site .ha-social { display:flex; gap:10px; padding:0 0 8px; }
.ha-site .ha-social a { width:38px; height:38px; border:1px solid #474b4f; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; }
.ha-site .ha-social a:hover { background:#7ac143; border-color:#7ac143; color:#212121; }
.ha-site .ha-fbottom { border-top:1px solid #393c3f; }
.ha-site .ha-fbottom .ha-wrap { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; padding-top:18px; padding-bottom:18px; font-size:13px; }
.ha-site .ha-fbottom ul { display:flex; gap:18px; flex-wrap:wrap; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .ha-site .ha-burger { display:block; }
  .ha-site .ha-nav { display:none; width:100%; flex-direction:column; gap:0; }
  .ha-site .ha-nav.is-open { display:flex; }
  .ha-site .ha-item { border-top:1px solid #393c3f; }
  .ha-site .ha-mbtn { width:100%; text-align:left; border-bottom:0; }
  .ha-site .ha-panel { position:static; box-shadow:none; border-top:0; }
  .ha-site .ha-panel-in { padding:16px 24px 20px; }
  .ha-site .ha-search { width:100%; }
  .ha-site .ha-search input { width:100%; }
  .ha-site .ha-h2 { font-size:30px; }
  .ha-site .ha-intro .customcss h1 { font-size:30px; }
  .ha-site .ha-intro .ha-rings { display:none; }
}
@media (max-width: 767px) {
  .ha-site #main-slider .prev, .ha-site #main-slider .next { display:none !important; }
  .ha-site .ha-marq span { font-size:16px; padding:12px 20px; }
}
