:root {
  --hgl-primary: #7D338F;
  --hgl-primary-dark: #552561;
  --hgl-accent: #A96EB8;
  --hgl-accent-dark: #875394;
  --hgl-hero-btn: #97BA52;
  --hgl-hero-btn-hover: #708C38;
  --hgl-cta: #97BA52;
  --hgl-bg: #ffffff;
  --hgl-sub-bg: #EDD8F2;
  --hgl-text: #2F1D33;
  --hgl-text2: #654D6B;
  --hgl-dark1: #190D1C;
  --hgl-dark2: #7D338F;
}
body { font-family: 'Helvetica Neue',Helvetica,Arial,'PingFang SC','Microsoft YaHei',sans-serif; color: var(--hgl-text); background: var(--hgl-bg); }
a { color: var(--hgl-primary); text-decoration: none; }
a:hover { color: var(--hgl-accent); }
.bg-glass { background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }

/* Header */
.hgl-header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.hgl-header .navbar-brand { font-weight: 800; font-size: 1.35rem; color: var(--hgl-primary); }
.hgl-header .nav-link { font-size: .92rem; color: var(--hgl-text); font-weight: 500; }
.hgl-header .nav-link:hover { color: var(--hgl-accent); }
.hgl-nav-cta { background: var(--hgl-primary); color: #fff !important; border-radius: 8px; padding: .45rem 1.2rem !important; }
.hgl-nav-cta:hover { background: var(--hgl-accent); }

/* Notice Bar */
.hgl-notice { background: linear-gradient(135deg,#97BA52,#708C38); color: var(--hgl-text); font-weight: 500; padding: .6rem 0; }

/* Hero */
.hgl-hero { background: url('{$domainStatic}/{$tplPath}/hgl01/images/hero.jpg') center/cover no-repeat; position: relative; padding: 5.5rem 0; text-align: center; color: #fff; }
.hgl-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,.78), rgba(0,0,0,.5)); }
.hgl-hero .container { position: relative; z-index: 2; }
.hgl-hero h1 { font-size: 2.5rem; font-weight: 800; }
.hgl-hero .hero-sub { font-size: 1.15rem; opacity: .92; max-width: 720px; margin: .8rem auto 0; }
.hgl-hero-btn { background: var(--hgl-hero-btn); color: #fff; border-radius: 50px; padding: .7rem 2.2rem; font-weight: 600; display: inline-block; margin-top: 1rem; }
.hgl-hero-btn:hover { background: var(--hgl-hero-btn-hover); color: #fff; }
.hgl-hero-outline { border: 2px solid #fff; color: #fff; border-radius: 50px; padding: .65rem 2rem; font-weight: 600; display: inline-block; margin-top: 1rem; }
.hgl-hero-outline:hover { background: #fff; color: var(--hgl-primary); }

/* Stats dark band */
.hgl-stats { padding: 3rem 0; background: linear-gradient(135deg,#552561,#7D338F); color: #fff; }
.hgl-stat-num { font-size: 2rem; font-weight: 800; color: var(--hgl-cta); }
.hgl-stat-label { font-size: .9rem; opacity: .8; }

/* Why Us */
.hgl-why { padding: 4rem 0; background: #fff; }
.hgl-why-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.06); padding: 1.75rem 1.25rem; height: 100%; border-top: 3px solid var(--hgl-primary); text-align: center; }
.hgl-icon-circle { width: 66px; height: 66px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--hgl-primary); color: #fff; font-size: 1.5rem; margin-bottom: .9rem; }

/* About / timeline */
.hgl-about { padding: 4rem 0; background: var(--hgl-sub-bg); }
.hgl-tl { position: relative; padding-left: 1.75rem; }
.hgl-tl::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--hgl-accent); opacity: .4; }
.hgl-tl-item { position: relative; margin-bottom: 1.4rem; }
.hgl-tl-item::before { content: ''; position: absolute; left: -1.75rem; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--hgl-primary); border: 3px solid #fff; }
.hgl-tl-item .yr { font-weight: 800; color: var(--hgl-primary); }

/* Departments */
.hgl-dept { padding: 4rem 0; background: #fff; }
.hgl-dept-card { background: var(--hgl-sub-bg); border-radius: 16px; padding: 1.75rem; height: 100%; text-align: center; transition: .2s; }
.hgl-dept-card:hover { background: var(--hgl-primary); color: #fff; }
.hgl-dept-card:hover .hgl-dept-icon { color: #fff; }
.hgl-dept-icon { font-size: 2.2rem; color: var(--hgl-primary); margin-bottom: .8rem; }

/* Security */
.hgl-sec { padding: 4rem 0; background: var(--hgl-sub-bg); }
.hgl-sec-item { background: #fff; border-radius: 14px; padding: 1.4rem; height: 100%; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.hgl-sec-item i { font-size: 1.6rem; color: var(--hgl-accent); }

/* Partners */
.hgl-partners { padding: 3.5rem 0; background: #fff; }
.hgl-partner-badge { display: flex; align-items: center; justify-content: center; gap: .5rem; background: var(--hgl-sub-bg); border-radius: 12px; padding: 1.1rem; font-weight: 700; color: var(--hgl-text2); height: 100%; }

/* FAQ */
.hgl-faq { padding: 4rem 0; background: var(--hgl-sub-bg); }
.hgl-faq .accordion-item { border: none; margin-bottom: .75rem; border-radius: 12px !important; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.hgl-faq .accordion-button { font-weight: 600; color: var(--hgl-text); }
.hgl-faq .accordion-button:not(.collapsed) { background: var(--hgl-primary); color: #fff; }

/* Mission */
.hgl-mission { padding: 4.5rem 0; background: linear-gradient(135deg,#7D338F 0%,#A96EB8 100%); color: #fff; text-align: center; }

/* Testimonials */
.hgl-testi { padding: 4rem 0; background: #fff; }
.hgl-testi-card { background: var(--hgl-sub-bg); border-radius: 16px; padding: 1.5rem; height: 100%; }

/* News */
.hgl-news { padding: 3.5rem 0; background: var(--hgl-sub-bg); }
.hgl-news-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); flex-shrink: 0; width: 300px; }
.hgl-news-card img { width: 100%; height: 168px; object-fit: cover; }
.hgl-news-card .card-body { padding: 1rem; }

/* CTA Banner */
.hgl-cta-banner { background: linear-gradient(135deg,#7D338F 0%,#A96EB8 100%); padding: 4rem 0; color: #fff; text-align: center; position: relative; overflow: hidden; }
.hgl-cta-banner h2 { font-weight: 800; }
.hgl-btn-cta { background: var(--hgl-cta); color: #1a1a1a; border-radius: 50px; padding: .7rem 2.5rem; font-weight: 700; display: inline-block; }
.hgl-btn-cta:hover { opacity: .9; color: #1a1a1a; }
.hgl-btn-outline-cta { border: 2px solid #fff; color: #fff; border-radius: 50px; padding: .65rem 2rem; display: inline-block; }
.hgl-btn-outline-cta:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Footer */
.hgl-footer { background: var(--hgl-dark1); color: #fff; padding: 3rem 0 1.5rem; }
.hgl-footer h6 { text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.hgl-footer a { color: rgba(255,255,255,.7); }
.hgl-footer a:hover { color: var(--hgl-cta); }
.hgl-footer-copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.5rem; text-align: center; font-size: .85rem; color: rgba(255,255,255,.5); }

/* List page */
.hgl-list-wrap { padding: 3rem 0; }
.hgl-list-item { background: #fff; border-radius: 16px; padding: 1.5rem; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.04); display: flex; gap: 1rem; align-items: center; }
.hgl-list-item img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }
.hgl-list-item h4 a { color: var(--hgl-text); }
.hgl-list-item h4 a:hover { color: var(--hgl-primary); }

/* Detail page */
.hgl-detail { padding: 3rem 0; }
.hgl-detail h1 { font-size: 1.8rem; font-weight: 800; color: var(--hgl-text); margin-bottom: .8rem; }
.hgl-detail-meta { font-size: .88rem; color: var(--hgl-text2); margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 14px; }
.hgl-detail-body { line-height: 1.9; font-size: 1rem; color: var(--hgl-text); }
.hgl-detail-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1rem 0; }

/* Pagination */
.hgl-pagination .page-link { color: var(--hgl-primary); border-radius: 8px; margin: 0 3px; }
.hgl-pagination .page-item.active .page-link { background: var(--hgl-primary); border-color: var(--hgl-primary); color: #fff; }

/* Section title */
.hgl-section-title { text-align: center; margin-bottom: 2.25rem; }
.hgl-section-title h2 { font-weight: 800; color: var(--hgl-text); }
.hgl-section-title p { color: var(--hgl-text2); }

/* Badge */
.hgl-badge { background: var(--hgl-cta); color: #1a1a1a; font-size: .75rem; border-radius: 6px; padding: .3em .7em; }

/* Scroll */
.hgl-scroll { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem; -webkit-overflow-scrolling: touch; }
.hgl-scroll > * { scroll-snap-align: start; }

/* Search */
.hgl-search { padding: 3rem 0; }
.hgl-search input { border-radius: 12px; }

/* User / contact form */
.hgl-form-wrap { max-width: 500px; margin: 3rem auto; padding: 2rem; background: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.hgl-form-submit { background: var(--hgl-primary); color: #fff; border: none; border-radius: 10px; width: 100%; padding: .75rem; font-weight: 700; }
.hgl-form-submit:hover { background: var(--hgl-accent); }

/* 404 */
.hgl-404 { text-align: center; padding: 5rem 0; }
.hgl-404 h1 { font-size: 6rem; font-weight: 900; color: var(--hgl-primary); }
