:root {
  --hd-bg: #fafbfc;
  --hd-dark: #10121a;
  --hd-muted: #6c7589;
  --hd-border: rgba(16,18,26,0.08);
}

body {
  background: var(--hd-bg);
  color: var(--hd-dark);
  margin: 0;
}

.hd-main {
  padding: 2rem 0;
}

/* Section */
.hd-section {
  margin-bottom: 3rem;
  position: relative;
}

.hd-section--hero {
  min-height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1.5rem;
  overflow: hidden;
}

.hd-section--tall {
  min-height: 120px;
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 1.5rem;
}

.hd-section--bg-image {
  background: url('../../images/001.jpg') center 60% / cover no-repeat;
  min-height: 600px;
  position: relative;
}

.hd-section--bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  border-radius: inherit;
}

/* Breadcrumbs */
.hd-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hd-breadcrumbs a {
  color: var(--hd-muted);
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}

.hd-breadcrumbs a:hover {
  color: var(--hd-dark);
}

.hd-breadcrumbs a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--hd-dark);
  transition: width 0.25s ease;
}

.hd-breadcrumbs a:hover::after {
  width: 100%;
}

.hd-breadcrumbs__sep {
  color: rgba(16,18,26,0.3);
  user-select: none;
}

.hd-breadcrumbs__current {
  color: var(--hd-dark);
  font-weight: 600;
}

.hd-breadcrumbs--left {
  justify-content: flex-start;
}

.hd-breadcrumbs--center {
  justify-content: center;
}

.hd-breadcrumbs--right {
  justify-content: flex-end;
}


.hd-page-title--dark{
     background: var(--hd-dark) !important; 
}

.hd-page-title--simple.hd-page-title--dark h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #fff;
}

.hd-page-title--dark .hd-breadcrumbs a {
    color: #fff;
}

.hd-page-title--dark .hd-breadcrumbs__sep {
    color: #fff;
    user-select: none;
}


.hd-page-title--dark .hd-breadcrumbs__current {
    color: #fff;
    font-weight: normal;
}


/* Page Title Variations */
.hd-page-title {
  padding: 4rem 0;
  background: #fff;
}



.hd-page-title--simple h1 {
  font-size: 2.5rem;
  margin: 0;
}

.hd-page-title--with-desc {
  padding: 4rem 0;
  text-align: center;
}

.hd-page-title--with-desc h1 {
  font-size: 2.75rem;
  margin: 0 0 1.25rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hd-page-title--with-desc p {
  font-size: 1.125rem;
  color: var(--hd-muted);
  line-height: 1.7;
  max-width: 42rem;
  margin: 0 auto;
}

.hd-page-title__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.hd-page-title--img-left .hd-page-title__grid {
  grid-template-columns: 1fr 1.2fr;
}

.hd-page-title--img-right .hd-page-title__grid {
  grid-template-columns: 1.2fr 1fr;
}

.hd-page-title__media {
    border-radius: 1rem;
    overflow: hidden;
    min-height: 20rem;
    background: #eee;
}

.hd-page-title__media--center {
  max-width: 32rem;
  margin: 0 auto 2rem;
  min-height: 18rem;
}

.hd-page-title__content h1 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
}

.hd-page-title__content p {
  font-size: 1.0625rem;
  color: var(--hd-muted);
  line-height: 1.7;
  margin: 0;
}

.hd-page-title--centered {
  text-align: center;
  padding: 4rem 0;
}

.hd-page-title--centered h1 {
  font-size: 2.75rem;
  margin: 0 0 1.25rem;
}

.hd-page-title--centered p {
  font-size: 1.125rem;
  color: var(--hd-muted);
  line-height: 1.7;
  max-width: 42rem;
  margin: 0 auto;
}

.hd-page-title--overlay {
  position: relative;
  z-index: 1;
  padding: 6rem 0 4rem;
background: transparent;
        
}

.hd-page-title--overlay .hd-breadcrumbs a,
.hd-page-title--overlay .hd-breadcrumbs__sep {
  color: rgba(255,255,255,0.7);
}

.hd-page-title--overlay .hd-breadcrumbs a:hover {
  color: #fff;
}

.hd-page-title--overlay .hd-breadcrumbs__current {
  color: #fff;
}

.hd-page-title--overlay h1 {
  color: #fff;
}

.hd-page-title--overlay p {
  color: rgba(255,255,255,0.9);
}

/* Header Base */
.hd-header {
  position: relative;
  z-index: 100;
}

.hd-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.25rem 1.25rem;
}

/* Logo */
.hd-logo {
  font-family: var(--gx-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hd-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.015em;
}
.hd-logo::before {
  content: '';
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.45rem;
  background-color: var(--gx-lime, #c9ec66);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a0a0c'%3E%3Cpath d='M13 2 3 14h7v8l10-12h-7V2z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 62% 62%;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hd-logo:hover::before {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 4px 14px rgba(201,236,102,0.55);
}

.hd-logo--minimal {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hd-dark);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
}

.hd-section--bg-image .hd-logo{
    color: #fff;
}

/* Navigation */
.hd-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.hd-nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--hd-dark);
  text-decoration: none;
  transition: color 0.25s ease;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hd-nav__link:hover {
  color: var(--hd-muted);
}

.hd-nav__group {
  position: relative;
}

.hd-nav__toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Dropdown */
.hd-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 1rem;
  min-width: 12rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.hd-nav__group:hover .hd-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hd-dropdown__inner {
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: 0.75rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}

.hd-dropdown__link {
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: var(--hd-dark);
  text-decoration: none;
  transition: background 0.2s ease;
}

.hd-dropdown__link:hover {
  background: rgba(16,18,26,0.04);
}

/* Third-level submenu (flyout) */
.hd-dropdown__sub-group {
  position: relative;
}
.hd-dropdown__sub-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: var(--hd-dark);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s ease;
}
.hd-dropdown__sub-trigger:hover {
  background: rgba(16,18,26,0.04);
}
.hd-dropdown__sub-trigger svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.hd-dropdown__sub {
  position: absolute;
  top: -0.5rem;
  left: 100%;
  padding-left: 0.5rem;
  min-width: 13rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}
.hd-dropdown__sub-group:hover > .hd-dropdown__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hd-dropdown__sub-inner {
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: 0.75rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}

/* Mobile sub-group inside Pages */
.hd-mobile-sub-group {
  margin: 0.4rem 0 0.6rem 0.85rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--hd-border);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.hd-mobile-sub-group__title {
  display: block;
  padding: 0.5rem 0.85rem 0.4rem;
  font-family: var(--gx-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
}
.hd-mobile-sub-group .hd-mobile-sublink {
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
}

/* Mega Menu */
.hd-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 1.5rem;
  width: 56rem;
  max-width: 90vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.hd-nav__group:hover .hd-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hd-mega-menu__inner {
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: 1rem;
  box-shadow: 0 24px 48px rgba(0,0,0,0.1);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.hd-mega-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hd-mega-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--hd-dark);
}

.hd-mega-col a {
  font-size: 0.9375rem;
  color: var(--hd-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hd-mega-col a:hover {
  color: var(--hd-dark);
}

.hd-mega-col--featured {
  grid-column: span 1;
}

.hd-mega-featured {
  background: #f8f9fa;
  border-radius: 0.75rem;
  padding: 1.25rem;
  height: 100%;
}

.hd-mega-featured h4 {
  margin-top: 0.75rem;
}

.hd-mega-featured p {
  font-size: 0.875rem;
  color: var(--hd-muted);
  margin: 0.5rem 0;
}

.hd-mega-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hd-dark);
  text-decoration: none;
  margin-top: 0.5rem;
}

/* Actions */
.hd-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hd-cta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hd-dark);
  text-decoration: none;
}

.hd-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--hd-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.hd-link:hover {
  color: var(--hd-dark);
}

.hd-search,
.hd-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: var(--hd-dark);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.hd-search:hover,
.hd-icon-btn:hover {
  background: rgba(16,18,26,0.06);
}

/* ========================
   HEADER 1: Simple Centered
   ======================== */
.hd-header-1 {
  background: #fff;
  border-bottom: 1px solid var(--hd-border);
  border-radius: 1.5rem 1.5rem 0 0;
}

/* ========================
   HEADER 2: Split with CTA
   ======================== */
.hd-header-2 {
  background: #fff;
  border-bottom: 1px solid var(--hd-border);
  border-radius: 1.5rem 1.5rem 0 0;
}

.hd-header-2 .hd-nav {
  justify-content: flex-start;
  margin-left: 3rem;
}

/* ========================
   HEADER 3: Dark Background
   ======================== */
.hd-header-3 {
  background: #10121a;
  border-radius: 1.5rem 1.5rem 0 0;
}

.hd-header-3 .hd-logo,
.hd-header-3 .hd-nav__link {
  color: #fff;
}

.hd-header-3 .hd-nav__link:hover {
  color: rgba(255,255,255,0.7);
}

.hd-header-3 .hd-search {
  color: #fff;
}

.hd-header-3 .hd-search:hover {
  background: rgba(255,255,255,0.1);
}

.hd-header-3 .gx-btn--outline .gx-btn__circle {
    background: #fff;
    color: var(--gx-dark);
    margin-right: -10px;
}

.gx-btn--outline:hover .gx-btn__circle {
    background:  var(--gx-dark);;
    color: #fff;
    margin-right: -10px;
}

/* ========================
   HEADER 4: Transparent Overlay
   ======================== */
.hd-header-4 {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
}

.hd-header-4 .hd-nav__link,
.hd-header-4 .hd-cta {
  color: #fff;
}

.hd-header-4 .hd-nav__link:hover {
  color: rgba(255,255,255,0.7);
}

/* ========================
   HEADER 5: With Dropdowns
   ======================== */
.hd-header-5 {
  background: #fff;
  border-bottom: 1px solid var(--hd-border);
  border-radius: 1.5rem 1.5rem 0 0;
}

.hd-header-5 .hd-nav {
  justify-content: flex-start;
  margin-left: 2rem;
}

/* ========================
   HEADER 6: Minimal Borderless
   ======================== */
.hd-header-6 {
  background: transparent;
}

.hd-header-6 .hd-nav {
  gap: 3rem;
}

/* ========================
   HEADER 7: Sticky with Scroll
   ======================== */
.hd-header-7 {
    position: sticky;
    top: 0;
    background: transparent;
    transition: all 0.3s ease;
    border-radius: 0;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.hd-header-7.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ========================
   HEADER 8: Mega Menu
   ======================== */
.hd-header-8 {
  background: #fff;
  border-bottom: 1px solid var(--hd-border);
  border-radius: 1.5rem 1.5rem 0 0;
}

.hd-header-8 .hd-nav {
  justify-content: flex-start;
  margin-left: 2rem;
}

/* Mobile Navigation */
.hd-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hd-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.hd-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 400px;
  background: #fff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}

.hd-mobile-menu.active {
  transform: translateX(0);
}

.hd-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--hd-border);
}

.hd-mobile-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--hd-dark);
  transition: background 0.2s ease;
}

.hd-mobile-close:hover {
  background: rgba(0,0,0,0.05);
}

.hd-mobile-menu__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem 1.5rem;
}

/* Section group with subtle separator */
.hd-mobile-link-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hd-border);
}
.hd-mobile-link-group:last-of-type {
  border-bottom: 0;
}

/* Section heading (Home / Pages / Admin) */
.hd-mobile-link--muted {
  font-family: var(--gx-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.4);
  padding: 0.4rem 0.85rem 0.6rem;
  cursor: default;
  opacity: 1;
  display: block;
}

/* Top-level link (Contact, etc.) */
.hd-mobile-link {
  display: block;
  padding: 0.85rem 0.85rem;
  margin: 0 0 0;
  color: var(--hd-dark);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.hd-mobile-link:hover {
  background: var(--gx-off-white, #f8f9fb);
  color: var(--gx-dark, #0a0a0c);
}

/* Sublink under section heading */
.hd-mobile-sublink {
  display: flex;
  align-items: center;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--hd-dark);
  border-radius: 10px;
  transition: background 0.18s, color 0.18s, padding-left 0.18s;
}
.hd-mobile-sublink:hover {
  background: var(--gx-off-white, #f8f9fb);
  color: var(--gx-dark, #0a0a0c);
  padding-left: 1.1rem;
}

.hd-mobile-menu__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--hd-border);
}

.hd-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--hd-border);
  display: none;
  grid-template-columns: repeat(2, 1fr);
  z-index: 997;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}

.hd-mobile-bar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.875rem;
  background: transparent;
  color: var(--hd-dark);
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.hd-mobile-bar__btn:hover {
  background: rgba(0,0,0,0.03);
}

.hd-mobile-bar__btn svg {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hd-nav {
    display: none;
  }

  .hd-header__inner {
    justify-content: space-between;
  }
    

    


  .hd-actions,
  .hd-cta {
    display: none;
  }

  .hd-mobile-bar {
    display: grid;
  }

  body {
    padding-bottom: 70px;
  }

  .hd-mega-menu__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hd-page-title__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hd-page-title--img-left .hd-page-title__grid,
  .hd-page-title--img-right .hd-page-title__grid {
    grid-template-columns: 1fr;
  }

  .hd-page-title--img-right .hd-page-title__grid {
    direction: ltr;
  }

  .hd-page-title--img-right .hd-page-title__media {
    order: -1;
  }
}

@media (max-width: 640px) {
  .hd-mega-menu__inner {
    grid-template-columns: 1fr;
  }

  .hd-page-title--simple h1 {
    font-size: 2rem;
  }

  .hd-page-title--with-desc h1,
  .hd-page-title--centered h1 {
    font-size: 2rem;
  }

  .hd-page-title__content h1 {
    font-size: 2rem;
  }

  .hd-page-title--with-desc p,
  .hd-page-title--centered p,
  .hd-page-title__content p {
    font-size: 1rem;
  }

  .hd-page-title {
    padding: 3rem 0;
  }

  .hd-page-title--simple {
    padding: 2rem 0;
  }
}


.hd-header-absolute{
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 99;
}

.hd-header-black .hd-logo{
    color: #fff;
}
