/* ============================================================
   HF Global Distributors Pro – front.css  v10.0.0
   Design: dark luxury, gold accent, pixel-perfect to reference
   ============================================================ */

/* ── CSS Custom Properties ──────────────────────────────── */
.hfgd-wrap {
  --gold:   var(--hfgd-secondary, #ffc400);
  --gold2:  #ffda66;
  --red:    var(--hfgd-primary,   #ff1e1e);
  --bg:     var(--hfgd-bg,        #050505);
  --card:   var(--hfgd-card,      #101010);
  --text:   var(--hfgd-text,      #ffffff);
  --muted:  var(--hfgd-muted,     #b8b8b8);
  --border: rgba(255,255,255,.10);
  --border-gold: rgba(255,196,0,.30);
  --radius: 12px;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  background: var(--bg);
  color: var(--text);
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  padding: 24px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
.hfgd-wrap *, .hfgd-wrap *::before, .hfgd-wrap *::after { box-sizing: border-box; }

/* ── Root container ──────────────────────────────────────── */
.hfgd-v9 { max-width: 1920px; margin: 0 auto; }

/* ── Utility ─────────────────────────────────────────────── */
.hfgd-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; flex: none; }
.hfgd-section-kicker {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .10em;
  line-height: 1.2;
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hfgd-hero-v6 {
  position: relative;
  min-height: 460px;
  border: 1px solid rgba(255,196,0,.20);
  border-radius: 18px;
  background-size: cover;
  background-position: center right;
  display: flex;
  align-items: center;
  padding: 52px 48px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.60);
}
/* bottom fade so the hero blends into the page */
.hfgd-hero-v6::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, rgba(5,5,5,.90), transparent);
  pointer-events: none;
}
/* left gradient – always applied on top of the background-image overlay */
.hfgd-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 540px;
}
.hfgd-hero-inner > span,
.hfgd-hero-inner .hfgd-section-kicker {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .10em;
}
.hfgd-hero-inner h1 {
  margin: 10px 0 16px;
  color: #fff !important;
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(44px, 5.4vw, 80px);
  line-height: .93;
  letter-spacing: -.04em;
}
.hfgd-hero-inner h1 strong,
.hfgd-hero-inner h1 em { color: var(--gold); font-style: normal; }
.hfgd-hero-inner p {
  color: #e8e8e8;
  font-size: 18px;
  line-height: 1.5;
  max-width: 460px;
  margin: 0 0 28px;
}

/* Buttons */
.hfgd-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hfgd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border-radius: 8px;
  padding: 13px 26px;
  text-decoration: none !important;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .05em;
  transition: all .22s ease;
  cursor: pointer;
  border: none;
}
.hfgd-btn .hfgd-icon { width: 16px; height: 16px; }
.hfgd-btn-gold {
  border: 1px solid rgba(255,196,0,.70);
  color: var(--gold) !important;
  background: rgba(0,0,0,.25);
  box-shadow: inset 0 0 0 1px rgba(255,196,0,.06), 0 0 28px rgba(255,196,0,.10);
}
.hfgd-btn-gold:hover {
  background: linear-gradient(135deg, #ffd566, #c98413);
  color: #060606 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,196,0,.22);
}

/* ════════════════════════════════════════════════════════════
   REGIONS / CONTINENTS
   ════════════════════════════════════════════════════════════ */
.hfgd-regions-v6 {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  padding: 22px 22px 20px;
}
.hfgd-regions-v6 h2 {
  margin: 6px 0 16px;
  color: #fff !important;
  text-transform: uppercase;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .025em;
}
.hfgd-region-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.hfgd-region-card {
  position: relative;
  min-height: 200px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(0,0,0,.25) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  cursor: pointer;
  color: #fff;
  text-align: center;
  padding: 0 10px 16px;
  transition: all .22s ease;
  box-shadow: inset 0 0 24px rgba(255,255,255,.015);
  font-family: inherit;
  font-size: inherit;
  overflow: hidden;
}
/* SVG floats in the upper portion */
.hfgd-region-card .hfgd-region-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -62%);
  width: 90px;
  height: 90px;
  object-fit: contain;
  opacity: .5;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  /* PNG images already have gold colour + transparent bg — no filter needed */
}
/* Text sits at the bottom */
.hfgd-region-card-label {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hfgd-region-card strong {
  display: block;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .03em;
  color: #fff;
}
.hfgd-region-card small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
.hfgd-region-card .hfgd-count-zero { color: #888; }
.hfgd-region-card .hfgd-count-has  { color: #b8b8b8; }

/* Hover */
.hfgd-region-card:hover {
  border-color: rgba(255,196,0,.50);
  box-shadow: 0 0 28px rgba(255,196,0,.18), inset 0 0 28px rgba(255,196,0,.06);
  transform: translateY(-3px);
}
.hfgd-region-card:hover .hfgd-region-svg { opacity: .80; transform: translate(-50%, -64%); }

/* Active */
.hfgd-region-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 36px rgba(255,196,0,.28), inset 0 0 36px rgba(255,196,0,.10);
  background: linear-gradient(180deg, rgba(255,196,0,.09) 0%, rgba(0,0,0,.30) 100%);
  transform: translateY(-3px);
}
.hfgd-region-card.active strong { color: var(--gold); }
.hfgd-region-card.active .hfgd-region-svg { opacity: 1; filter: drop-shadow(0 0 8px rgba(255,196,0,.45)); }
.hfgd-region-card.active small.hfgd-count-zero { color: #aaa; }


/* ════════════════════════════════════════════════════════════
   DISTRIBUTOR LIST SECTION
   ════════════════════════════════════════════════════════════ */
.hfgd-list-v6 {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.012));
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  padding: 22px;
}

/* List header bar */
.hfgd-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.hfgd-viewing {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  color: #fff;
  white-space: nowrap;
}
.hfgd-viewing .hfgd-icon { width: 18px; height: 18px; color: var(--gold); }
.hfgd-viewing b { color: var(--gold); font-weight: 900; }

/* Search + sort toolbar */
.hfgd-list-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}
.hfgd-search-wrap { position: relative; display: flex; align-items: center; }
.hfgd-search-wrap input {
  height: 46px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: #fff;
  padding: 0 46px 0 16px;
  min-width: 280px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .18s;
}
.hfgd-search-wrap input::placeholder { color: #888; }
.hfgd-search-wrap input:focus { border-color: rgba(255,196,0,.45); }
.hfgd-search-wrap .hfgd-icon {
  position: absolute;
  right: 15px;
  width: 17px;
  height: 17px;
  color: #888;
  pointer-events: none;
}
select.hfgd-sort {
  height: 46px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: #fff;
  padding: 0 14px;
  min-width: 170px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color .18s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
select.hfgd-sort:focus { border-color: rgba(255,196,0,.45); }
select.hfgd-sort option { background: #111; color: #fff; }

/* ── Card Grid: wide desktop = 2 columns ─────── */
.hfgd-card-grid-v6 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* ════════════════════════════════════════════════════════════
   DISTRIBUTOR CARD  v10
   Layout: [city-image 160px] [content] [view-btn 140px]
   ════════════════════════════════════════════════════════════ */
.hfgd-card-v8 {
  position: relative;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 96px;
  gap: 0;
  align-items: stretch;
  min-height: 160px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.016));
  box-shadow: 0 16px 50px rgba(0,0,0,.38);
  transition: border-color .22s, box-shadow .22s, transform .22s;
  overflow: hidden;
}
/* subtle gold shimmer in top-right */
.hfgd-card-v8::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 18%, rgba(255,196,0,.12), transparent 38%);
  pointer-events: none;
  z-index: 0;
}
.hfgd-card-v8:hover {
  border-color: rgba(255,196,0,.52);
  box-shadow: 0 22px 70px rgba(255,196,0,.11), 0 20px 70px rgba(0,0,0,.48);
  transform: translateY(-3px);
}

/* ── Card image column ───────────────────────────────────── */
.hfgd-card-logo-v8 {
  position: relative;
  z-index: 1;
  width: 156px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.hfgd-card-logo-v8 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  padding: 10px;
  box-sizing: border-box;
}
/* Fallback initial when no image */
.hfgd-card-logo-v8 span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,196,0,.08);
  border: 1px solid rgba(255,196,0,.45);
  color: var(--gold);
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
}

/* ── Card content column ─────────────────────────────────── */
.hfgd-card-main-v8 {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Title row: name + badge */
.hfgd-card-top-v8 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 5px;
}
.hfgd-card-top-v8 h3 {
  margin: 0 0 4px;
  color: #fff !important;
  font-size: clamp(19px, 1.5vw, 26px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.022em;
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
}
/* Official badge */
.hfgd-badge-v8 {
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid rgba(255,196,0,.55);
  color: var(--gold);
  background: rgba(255,196,0,.07);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}

/* Country line */
.hfgd-card-country-v8 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #ccc;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.35;
}
.hfgd-location-text-v8 {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hfgd-location-city-v8,
.hfgd-location-country-v8 {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hfgd-card-country-v8 img {
  width: 26px;
  height: 17px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 3px 10px rgba(0,0,0,.4);
  flex-shrink: 0;
}

/* Contact rows */
.hfgd-card-contact-v9 {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hfgd-card-contact-v9 a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d4d4d4 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  min-width: 0;
  line-height: 1.3;
  transition: color .16s;
}
.hfgd-card-contact-v9 a .hfgd-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--gold);
  opacity: .85;
}
.hfgd-card-contact-v9 a:hover { color: var(--gold) !important; }
.hfgd-card-contact-v9 a:hover .hfgd-icon { opacity: 1; }

/* ── View Details button column ──────────────────────────── */
.hfgd-card-view-v8 {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border-left: 1px solid rgba(255,196,0,.18);
  color: var(--gold) !important;
  text-decoration: none !important;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .055em;
  background: rgba(255,196,0,.04);
  text-align: center;
  padding: 14px 8px;
  transition: background .2s, color .2s;
  line-height: 1.3;
}
.hfgd-card-view-v8 .hfgd-icon { width: 18px; height: 18px; }
.hfgd-card-view-v8:hover {
  background: linear-gradient(160deg, rgba(255,196,0,.18), rgba(255,196,0,.06));
  color: #ffe066 !important;
}

/* No results */
.hfgd-no-results {
  padding: 32px;
  text-align: center;
  border: 1px dashed rgba(255,196,0,.30);
  border-radius: 10px;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  grid-column: 1 / -1;
}

/* ════════════════════════════════════════════════════════════
   PARTNER CTA BANNER
   ════════════════════════════════════════════════════════════ */
.hfgd-partner-cta-v6 {
  margin-top: 12px;
  border: 1px solid rgba(255,196,0,.28);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(10,10,10,.94), rgba(18,15,6,.75)),
    radial-gradient(circle at 0 50%, rgba(255,196,0,.13), transparent 40%);
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  padding: 28px 26px;
  display: grid;
  grid-template-columns: 80px 340px 1fr;
  gap: 24px;
  align-items: center;
}
.hfgd-cta-mark { color: var(--gold); text-align: center; }
.hfgd-cta-mark .hfgd-icon { width: 52px; height: 52px; }
.hfgd-cta-copy span {
  color: #fff;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
}
.hfgd-cta-copy h2 {
  margin: 4px 0 10px;
  color: var(--gold) !important;
  text-transform: uppercase;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}
.hfgd-cta-copy p { margin: 0 0 16px; color: #ccc; font-size: 15px; }

/* Steps grid */
.hfgd-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hfgd-steps > div {
  border-left: 1px solid rgba(255,255,255,.12);
  padding: 10px 16px;
}
.hfgd-steps b {
  display: block;
  color: var(--gold);
  font-size: 0; /* hide font size so icon drives it */
  margin-bottom: 8px;
}
.hfgd-steps b .hfgd-icon { width: 28px; height: 28px; }
.hfgd-steps strong { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; font-weight: 700; }
.hfgd-steps small { display: block; color: #b0b0b0; font-size: 12.5px; line-height: 1.4; }

/* ════════════════════════════════════════════════════════════
   APPLICATION FORM
   ════════════════════════════════════════════════════════════ */
.hfgd-panel {
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.hfgd-application {
  margin-top: 12px;
  border-color: rgba(255,196,0,.22);
}
.hfgd-application > div { margin-bottom: 20px; }
.hfgd-application span {
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 11.5px;
  letter-spacing: .10em;
}
.hfgd-application h2 { margin: 4px 0 8px; color: #fff !important; font-size: 28px; }
.hfgd-application p { margin: 0; color: #bbb; font-size: 15px; }
.hfgd-application form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hfgd-application input,
.hfgd-application textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  color: #fff;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .18s;
  width: 100%;
}
.hfgd-application input::placeholder,
.hfgd-application textarea::placeholder { color: #666; }
.hfgd-application input:focus,
.hfgd-application textarea:focus { border-color: rgba(255,196,0,.45); }
.hfgd-application textarea { grid-column: 1 / -1; resize: vertical; }
.hfgd-application button {
  border: 0;
  cursor: pointer;
  justify-content: center;
  background: linear-gradient(135deg, #ffd566, #c98413);
  color: #060606 !important;
  font-weight: 900;
}
.hfgd-application button:hover {
  background: linear-gradient(135deg, #ffe080, #dda020);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════
   SINGLE DISTRIBUTOR PROFILE
   ════════════════════════════════════════════════════════════ */
.hfgd-profile-hero {
  min-height: 260px;
  border: 1px solid rgba(255,196,0,.22);
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.hfgd-profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5,5,5,.88) 0%, rgba(5,5,5,.40) 60%, transparent 100%);
  pointer-events: none;
}
.hfgd-profile-hero > * { position: relative; z-index: 1; }
.hfgd-profile-hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  margin: 16px 0 10px;
  text-transform: uppercase;
  font-weight: 950;
  color: #fff !important;
  text-shadow: 0 4px 28px rgba(0,0,0,.8);
  letter-spacing: -.03em;
}
.hfgd-profile-hero p { color: #e8e8e8; font-size: 18px; }
.hfgd-profile-flag {
  width: 32px; height: 22px;
  object-fit: cover;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2);
}

.hfgd-profile-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr .9fr;
  gap: 14px;
  margin-top: 14px;
}
.hfgd-panel h2 { margin-top: 0; color: #fff; font-size: 22px; font-weight: 700; }
.hfgd-panel dl { display: grid; grid-template-columns: 170px 1fr; gap: 16px; }
.hfgd-panel dt { color: var(--muted); font-weight: 700; font-size: 14px; }
.hfgd-panel dd { margin: 0; color: #fff; font-weight: 800; font-size: 14px; }
.hfgd-panel dd:first-of-type { color: var(--gold); }
.hfgd-about p { color: #d8d8d8; line-height: 1.72; font-size: 15px; }

.hfgd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
  text-align: center;
}
.hfgd-stats b { display: block; color: var(--gold); font-size: 26px; font-weight: 900; }
.hfgd-stats span { font-size: 12px; color: #c0c0c0; }

.hfgd-contact {
  height: 50px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  margin-bottom: 8px;
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(255,255,255,.03);
  font-size: 14px;
  transition: border-color .18s, background .18s;
}
.hfgd-contact:hover { border-color: var(--border-gold); background: rgba(255,196,0,.05); }
.hfgd-contact .hfgd-icon { width: 18px; height: 18px; color: var(--gold); }

.hfgd-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hfgd-products > div {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  overflow: hidden;
  background-color: #111;
  display: flex;
  flex-direction: column;
}
.hfgd-products .hfgd-product-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background-color: #181818;
}
/* fallback when no image — show a gold-tinted placeholder bar */
.hfgd-products .hfgd-product-img-placeholder {
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, rgba(255,196,0,.08), rgba(255,196,0,.03));
  border-bottom: 1px solid rgba(255,196,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,196,0,.3);
  font-size: 32px;
}
.hfgd-products-text {
  padding: 14px 16px;
  flex: 1;
}
.hfgd-products b { display: block; color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.hfgd-products span { color: #bbb; font-size: 13px; line-height: 1.4; }

.hfgd-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.hfgd-gallery img { width: 100%; height: 118px; object-fit: cover; border-radius: 8px; }

.hfgd-verified {
  margin-top: 14px;
  border: 1px solid rgba(255,196,0,.18);
  background: rgba(255,196,0,.07);
  color: var(--gold);
  border-radius: 10px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 14px;
}



/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════
   MOBILE FIXES v10.1 – replaces all @media blocks
   ════════════════════════════════════════════════════════════ */

/* ── Always: prevent overflow on text inside cards ─────── */
.hfgd-card-v8 { min-width: 0; }
.hfgd-card-main-v8 { min-width: 0; overflow: hidden; }
.hfgd-card-top-v8 { min-width: 0; }
.hfgd-badge-v8 {
  /* Allow wrapping on very narrow columns, don't overflow */
  white-space: normal;
  word-break: break-word;
  max-width: 112px;
  text-align: center;
  line-height: 1.2;
}
.hfgd-card-contact-v9 a {
  /* Truncate long URLs gracefully */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hfgd-card-contact-v9 a span,
.hfgd-card-contact-v9 a svg { flex-shrink: 0; }

@media (max-width: 1400px) {
  .hfgd-card-grid-v6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1250px) {
  .hfgd-region-cards { grid-template-columns: repeat(4, 1fr); }
  .hfgd-region-card { min-height: 180px; }
  .hfgd-region-card .hfgd-region-svg { width: 72px; height: 72px; }
  .hfgd-partner-cta-v6 { grid-template-columns: 80px 1fr; }
  .hfgd-steps { grid-template-columns: repeat(2, 1fr); }
  .hfgd-certificate { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .hfgd-card-grid-v6 { grid-template-columns: 1fr; }
  /* Cards: slightly smaller image col */
  .hfgd-card-v8 { grid-template-columns: 120px minmax(0,1fr) 90px; }
  .hfgd-card-logo-v8 { width: 120px; }
  .hfgd-profile-grid { grid-template-columns: 1fr 1fr; }
  .hfgd-products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .hfgd-wrap { padding: 10px; }

  /* Hero */
  .hfgd-hero-v6 { min-height: 360px; padding: 28px 20px; background-position: center !important; }
  .hfgd-hero-inner h1 { font-size: 38px; }
  .hfgd-hero-inner p { font-size: 15px; }

  /* Regions */
  .hfgd-region-cards { grid-template-columns: repeat(3, 1fr); }
  .hfgd-region-card { min-height: 160px; }
  .hfgd-region-card .hfgd-region-svg { width: 64px; height: 64px; }
  .hfgd-region-card strong { font-size: 11px; }
  .hfgd-region-card small { font-size: 10px; }

  /* List head: stack vertically */
  .hfgd-list-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .hfgd-list-tools { flex-direction: column; width: 100%; gap: 8px; }
  .hfgd-search-wrap { width: 100%; }
  .hfgd-search-wrap input { width: 100%; min-width: 0; }
  select.hfgd-sort { width: 100%; min-width: 0; }

  /* Cards: 2-col (image | content), view button goes full-width below */
  .hfgd-card-v8 {
    grid-template-columns: 100px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .hfgd-card-logo-v8 { width: 100px; grid-row: 1; grid-column: 1; }
  .hfgd-card-logo-v8 img { padding: 7px; }
  .hfgd-card-main-v8 { grid-row: 1; grid-column: 2; padding: 12px 12px 10px; }
  .hfgd-card-view-v8 {
    grid-row: 2;
    grid-column: 1 / -1;
    min-height: 44px;
    border-left: none;
    border-top: 1px solid rgba(255,196,0,.16);
    flex-direction: row;
    gap: 8px;
    padding: 11px 16px;
  }

  /* Badge: allow wrap inside card on mobile */
  .hfgd-badge-v8 { max-width: 90px; font-size: 10px; }

  /* Profile & misc */
  .hfgd-profile-grid { grid-template-columns: 1fr; }
  .hfgd-products { grid-template-columns: 1fr; }
  .hfgd-panel dl { grid-template-columns: 1fr; }
  .hfgd-application form { grid-template-columns: 1fr; }
  .hfgd-application textarea { grid-column: auto; }
  .hfgd-steps { grid-template-columns: 1fr; }
  .hfgd-partner-cta-v6 { grid-template-columns: 1fr; }
  .hfgd-gallery { grid-template-columns: repeat(3, 1fr); }
  .hfgd-certificate-link { flex-direction: column; }
  .hfgd-certificate-link input { width: 100%; }
  .hfgd-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hfgd-region-cards { grid-template-columns: repeat(2, 1fr); }
  .hfgd-region-card { min-height: 140px; }
  .hfgd-region-card .hfgd-region-svg { width: 54px; height: 54px; }
  .hfgd-hero-inner h1 { font-size: 30px; letter-spacing: -.03em; }
  .hfgd-btn { padding: 10px 14px; min-height: 42px; font-size: 12px; }

  /* Cards even tighter */
  .hfgd-card-v8 { grid-template-columns: 84px minmax(0, 1fr); }
  .hfgd-card-logo-v8 { width: 84px; }
  .hfgd-card-logo-v8 img { padding: 5px; }
  .hfgd-card-main-v8 { padding: 10px 10px 8px; }
  .hfgd-card-top-v8 { gap: 6px; }
  .hfgd-card-top-v8 h3 { font-size: 16px; }
  .hfgd-card-country-v8 { font-size: 12px; margin-bottom: 7px; }
  .hfgd-card-country-v8 img { width: 20px; height: 13px; }
  .hfgd-card-contact-v9 a { font-size: 12px; gap: 7px; }
  .hfgd-badge-v8 { font-size: 9px; padding: 3px 7px; max-width: 80px; }
}



/* v11.5.6 distributor card fixes */
.hfgd-card-grid-v6{
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.hfgd-card-v8{
  grid-template-columns: 156px minmax(0, 1fr) 96px;
}
.hfgd-card-logo-v8 img{
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 10px !important;
  box-sizing: border-box;
}
.hfgd-location-text-v8{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hfgd-location-country-v8,
.hfgd-location-city-v8{
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hfgd-card-view-v8{
  justify-content: space-between;
  min-width: 86px;
}
.hfgd-view-main-v8{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.hfgd-badge-side-v8{
  width: auto;
  max-width: 82px;
  padding: 4px 6px;
  font-size: 8.5px;
  line-height: 1.15;
  white-space: normal;
  margin: 0 auto;
}

@media (min-width: 1401px){
  .hfgd-card-grid-v6{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 780px){
  .hfgd-badge-side-v8{ max-width: 150px; font-size: 10px; }
  .hfgd-card-view-v8{ justify-content: center; }
  .hfgd-view-main-v8{ flex-direction: row; }
}

/* v11.5.8 mobile style + red top badge fix */
.hfgd-badge-v8{
  border-color: rgba(226,27,27,.95) !important;
  color: #fff !important;
  background: linear-gradient(180deg, #ff3333 0%, #e21b1b 100%) !important;
  box-shadow: 0 8px 20px rgba(226,27,27,.22), inset 0 1px 0 rgba(255,255,255,.18);
}
.hfgd-card-view-v8{
  justify-content: center !important;
}
.hfgd-badge-side-v8{
  display: none !important;
}
.hfgd-card-view-v8 .hfgd-icon{
  color: #e21b1b !important;
}

@media (max-width: 960px){
  .hfgd-card-grid-v6{
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 780px){
  .hfgd-wrap{
    padding: 10px !important;
    overflow-x: hidden !important;
  }
  .hfgd-list-v6{
    padding: 14px !important;
  }
  .hfgd-card-grid-v6{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .hfgd-card-v8{
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    min-height: 0 !important;
    border-radius: 16px !important;
  }
  .hfgd-card-logo-v8{
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 190px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
  }
  .hfgd-card-logo-v8 img{
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 16px !important;
  }
  .hfgd-card-main-v8{
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 18px 16px 16px !important;
    overflow: visible !important;
  }
  .hfgd-card-top-v8{
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }
  .hfgd-card-top-v8 h3{
    font-size: 24px !important;
    line-height: 1.08 !important;
  }
  .hfgd-badge-v8{
    max-width: 122px !important;
    padding: 6px 9px !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
  }
  .hfgd-card-country-v8{
    font-size: 15px !important;
    margin-bottom: 14px !important;
    line-height: 1.35 !important;
  }
  .hfgd-card-country-v8 img{
    width: 28px !important;
    height: 18px !important;
  }
  .hfgd-location-country-v8,
  .hfgd-location-city-v8{
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .hfgd-card-contact-v9{
    gap: 9px !important;
  }
  .hfgd-card-contact-v9 a{
    font-size: 15px !important;
  }
  .hfgd-card-view-v8{
    grid-column: 1 !important;
    grid-row: 3 !important;
    min-height: 52px !important;
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid rgba(226,27,27,.40) !important;
    background: rgba(226,27,27,.06) !important;
    color: var(--gold) !important;
    padding: 12px 16px !important;
  }
  .hfgd-view-main-v8{
    flex-direction: row !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px){
  .hfgd-card-logo-v8{
    height: 170px !important;
  }
  .hfgd-card-main-v8{
    padding: 16px 14px 14px !important;
  }
  .hfgd-card-top-v8 h3{
    font-size: 21px !important;
  }
  .hfgd-badge-v8{
    max-width: 105px !important;
    font-size: 9px !important;
    padding: 5px 7px !important;
  }
  .hfgd-card-country-v8,
  .hfgd-card-contact-v9 a{
    font-size: 14px !important;
  }
}


/* v11.5.8 mobile horizontal card fix
   Mobile stays 1-column list, but each distributor card keeps desktop-style
   [logo | content | view details] layout instead of stacked blocks. */
@media (max-width: 780px){
  .hfgd-card-grid-v6{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .hfgd-card-v8{
    display: grid !important;
    grid-template-columns: 100px minmax(0, 1fr) 78px !important;
    grid-template-rows: 1fr !important;
    min-height: 170px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  .hfgd-card-logo-v8{
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 170px !important;
    border-right: 1px solid rgba(255,255,255,.08) !important;
    border-bottom: none !important;
  }
  .hfgd-card-logo-v8 img{
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 8px !important;
  }
  .hfgd-card-main-v8{
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding: 14px 12px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    justify-content: center !important;
  }
  .hfgd-card-top-v8{
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }
  .hfgd-card-top-v8 h3{
    font-size: 20px !important;
    line-height: 1.08 !important;
    margin-bottom: 6px !important;
    word-break: normal !important;
  }
  .hfgd-badge-v8{
    flex: 0 0 auto !important;
    max-width: 98px !important;
    padding: 5px 7px !important;
    font-size: 9px !important;
    line-height: 1.15 !important;
    border-color: #e21b1b !important;
    background: linear-gradient(180deg, #ff3333 0%, #e21b1b 100%) !important;
    color: #fff !important;
  }
  .hfgd-card-country-v8{
    font-size: 14px !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
  }
  .hfgd-card-country-v8 img{
    width: 24px !important;
    height: 16px !important;
  }
  .hfgd-location-text-v8{
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
  }
  .hfgd-location-country-v8,
  .hfgd-location-city-v8{
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .hfgd-card-contact-v9{
    gap: 6px !important;
  }
  .hfgd-card-contact-v9 a{
    font-size: 13px !important;
    line-height: 1.25 !important;
    gap: 7px !important;
  }
  .hfgd-card-contact-v9 a .hfgd-icon{
    width: 14px !important;
    height: 14px !important;
  }
  .hfgd-card-view-v8{
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 100% !important;
    border-left: 1px solid rgba(226,27,27,.35) !important;
    border-top: none !important;
    background: rgba(226,27,27,.04) !important;
    padding: 10px 6px !important;
    flex-direction: column !important;
    justify-content: center !important;
    color: var(--gold) !important;
    font-size: 10px !important;
  }
  .hfgd-view-main-v8{
    flex-direction: column !important;
    gap: 6px !important;
  }
}

@media (max-width: 480px){
  .hfgd-list-v6{ padding: 10px !important; }
  .hfgd-card-v8{
    grid-template-columns: 82px minmax(0, 1fr) 66px !important;
    min-height: 158px !important;
  }
  .hfgd-card-logo-v8{
    min-height: 158px !important;
    height: 100% !important;
  }
  .hfgd-card-logo-v8 img{ padding: 6px !important; }
  .hfgd-card-main-v8{ padding: 12px 9px !important; }
  .hfgd-card-top-v8{ gap: 6px !important; }
  .hfgd-card-top-v8 h3{ font-size: 18px !important; }
  .hfgd-badge-v8{
    max-width: 82px !important;
    font-size: 8px !important;
    padding: 4px 5px !important;
  }
  .hfgd-card-country-v8{ font-size: 12.5px !important; margin-bottom: 8px !important; }
  .hfgd-card-country-v8 img{ width: 21px !important; height: 14px !important; }
  .hfgd-card-contact-v9{ gap: 5px !important; }
  .hfgd-card-contact-v9 a{ font-size: 12px !important; gap: 6px !important; }
  .hfgd-card-view-v8{ font-size: 9px !important; padding: 8px 4px !important; }
  .hfgd-card-view-v8 .hfgd-icon{ width: 16px !important; height: 16px !important; }
}

/* ============================================================
   v12.0.0 - Professional mobile distributor cards
   Desktop/tablet keeps current 2-column card. Mobile becomes:
   [logo | content + badge] + full-width View Details footer.
   ============================================================ */
.hfgd-badge-v8{
  border-color: #e21b1b !important;
  color: #fff !important;
  background: linear-gradient(180deg, #ff3030 0%, #e21b1b 100%) !important;
  box-shadow: 0 8px 22px rgba(226,27,27,.28), inset 0 1px 0 rgba(255,255,255,.18) !important;
}
.hfgd-badge-side-v8{ display:none !important; }
.hfgd-card-view-v8 .hfgd-icon{ color:#e21b1b !important; }

@media (max-width: 780px){
  .hfgd-wrap{
    padding-left: 10px !important;
    padding-right: 10px !important;
    overflow-x: hidden !important;
  }
  .hfgd-list-v6{
    padding: 12px !important;
  }
  .hfgd-card-grid-v6{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .hfgd-card-v8{
    display: grid !important;
    grid-template-columns: 98px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 85% 20%, rgba(226,27,27,.10), transparent 38%),
      linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.016)) !important;
  }
  .hfgd-card-v8::before{
    background: radial-gradient(circle at 82% 12%, rgba(226,27,27,.10), transparent 42%) !important;
  }
  .hfgd-card-logo-v8{
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 98px !important;
    height: auto !important;
    min-height: 190px !important;
    border-right: 1px solid rgba(255,255,255,.08) !important;
    border-bottom: none !important;
    align-self: stretch !important;
  }
  .hfgd-card-logo-v8 img{
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 8px !important;
  }
  .hfgd-card-logo-v8 span{
    width: 58px !important;
    height: 58px !important;
    font-size: 30px !important;
  }
  .hfgd-card-main-v8{
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    padding: 18px 14px 16px !important;
    overflow: visible !important;
    justify-content: flex-start !important;
  }
  .hfgd-card-top-v8{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    justify-content: initial !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }
  .hfgd-card-top-v8 h3{
    font-size: 22px !important;
    line-height: 1.05 !important;
    margin: 0 0 8px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  .hfgd-badge-v8{
    width: 118px !important;
    max-width: 118px !important;
    min-width: 0 !important;
    text-align: center !important;
    white-space: normal !important;
    padding: 7px 8px !important;
    font-size: 9px !important;
    line-height: 1.18 !important;
    border-radius: 7px !important;
    letter-spacing: .035em !important;
    margin-top: 0 !important;
  }
  .hfgd-card-country-v8{
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 15px !important;
    line-height: 1.28 !important;
    margin-bottom: 16px !important;
    color: #efefef !important;
  }
  .hfgd-card-country-v8 img{
    width: 28px !important;
    height: 19px !important;
    margin-top: 1px !important;
  }
  .hfgd-location-text-v8{
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
  }
  .hfgd-location-country-v8,
  .hfgd-location-city-v8{
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .hfgd-location-country-v8{
    font-weight: 800 !important;
  }
  .hfgd-location-city-v8{
    font-weight: 600 !important;
    color: #dedede !important;
  }
  .hfgd-card-contact-v9{
    gap: 9px !important;
  }
  .hfgd-card-contact-v9 a{
    font-size: 14px !important;
    line-height: 1.25 !important;
    gap: 8px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  .hfgd-card-contact-v9 a .hfgd-icon{
    width: 16px !important;
    height: 16px !important;
  }
  .hfgd-card-view-v8{
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    border-left: none !important;
    border-top: 1px solid rgba(226,27,27,.45) !important;
    background: linear-gradient(90deg, rgba(226,27,27,.10), rgba(255,196,0,.035)) !important;
    padding: 12px 16px !important;
    flex-direction: row !important;
    justify-content: center !important;
    color: var(--gold) !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    letter-spacing: .06em !important;
  }
  .hfgd-view-main-v8{
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
  }
  .hfgd-card-view-v8 .hfgd-icon{
    width: 18px !important;
    height: 18px !important;
  }
}

@media (max-width: 420px){
  .hfgd-list-v6{ padding: 8px !important; }
  .hfgd-card-v8{
    grid-template-columns: 82px minmax(0, 1fr) !important;
  }
  .hfgd-card-logo-v8{
    width: 82px !important;
    min-height: 188px !important;
  }
  .hfgd-card-logo-v8 span{
    width: 54px !important;
    height: 54px !important;
    font-size: 28px !important;
  }
  .hfgd-card-main-v8{
    padding: 16px 10px 14px !important;
  }
  .hfgd-card-top-v8{
    gap: 7px !important;
  }
  .hfgd-card-top-v8 h3{
    font-size: 19px !important;
  }
  .hfgd-badge-v8{
    width: 94px !important;
    max-width: 94px !important;
    font-size: 8px !important;
    padding: 6px 5px !important;
  }
  .hfgd-card-country-v8{
    font-size: 13px !important;
    margin-bottom: 13px !important;
  }
  .hfgd-card-country-v8 img{
    width: 24px !important;
    height: 16px !important;
  }
  .hfgd-card-contact-v9{ gap: 7px !important; }
  .hfgd-card-contact-v9 a{
    font-size: 12.5px !important;
    gap: 7px !important;
  }
  .hfgd-card-contact-v9 a .hfgd-icon{
    width: 14px !important;
    height: 14px !important;
  }
  .hfgd-card-view-v8{
    min-height: 50px !important;
    font-size: 12px !important;
  }
}

/* ============================================================
   v12.0.1 - Mobile location + transparent badge fix
   Fixes country/city breaking letter-by-letter on small screens.
   Badge: transparent background, red border, yellow text.
   ============================================================ */
.hfgd-badge-v8{
  background: transparent !important;
  color: #ffc400 !important;
  border: 1.5px solid #e21b1b !important;
  box-shadow: none !important;
}

@media (max-width: 780px){
  .hfgd-card-v8{
    grid-template-columns: 88px minmax(0, 1fr) !important;
  }
  .hfgd-card-logo-v8{
    width: 88px !important;
  }
  .hfgd-card-main-v8{
    min-width: 0 !important;
    width: 100% !important;
    padding: 16px 12px 14px !important;
  }

  /* Do not let badge steal width from title/location on mobile */
  .hfgd-card-top-v8{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 10px !important;
  }
  .hfgd-card-top-v8 h3{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1.08 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  .hfgd-badge-v8{
    width: auto !important;
    max-width: 136px !important;
    min-width: 96px !important;
    align-self: flex-start !important;
    padding: 6px 9px !important;
    font-size: 8.5px !important;
    line-height: 1.18 !important;
    text-align: center !important;
    white-space: normal !important;
    background: transparent !important;
    color: #ffc400 !important;
    border: 1.5px solid #e21b1b !important;
    box-shadow: none !important;
  }

  /* Country first line, city second line. Never letter-by-letter. */
  .hfgd-card-country-v8{
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
    margin: 0 0 14px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
  }
  .hfgd-card-country-v8 img{
    grid-column: 1 !important;
    width: 26px !important;
    height: 17px !important;
    margin-top: 2px !important;
  }
  .hfgd-location-text-v8{
    grid-column: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .hfgd-location-country-v8,
  .hfgd-location-city-v8{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
}

@media (max-width: 420px){
  .hfgd-card-v8{
    grid-template-columns: 76px minmax(0, 1fr) !important;
  }
  .hfgd-card-logo-v8{
    width: 76px !important;
    min-height: 210px !important;
  }
  .hfgd-card-main-v8{
    padding: 14px 10px 13px !important;
  }
  .hfgd-card-top-v8 h3{
    font-size: 18px !important;
  }
  .hfgd-badge-v8{
    min-width: 88px !important;
    max-width: 122px !important;
    font-size: 7.8px !important;
    padding: 5px 7px !important;
  }
  .hfgd-card-country-v8{
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 7px !important;
    font-size: 12.5px !important;
  }
  .hfgd-card-country-v8 img{
    width: 23px !important;
    height: 15px !important;
  }
}
