/* HS Hospitality Solutions — Website Styles */

:root {
  --navy: #0B1E3D;
  --navy-light: #1a3a6b;
  --gold: #C9A84C;
  --gold-light: #F4D58D;
  --cyan: #1FA8E5;
  --text: #1a2942;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #F7F8FA;
  --border: #e5e7eb;
  --max-w: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Bilingual visibility */
body.lang-th .t-en { display: none !important; }
body.lang-en .t-th { display: none !important; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 18px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }

p { margin-bottom: 14px; color: var(--text); }

/* ── HEADER ── */
.site-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
}

.brand img { width: 46px; height: 46px; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.nav-links a:hover { border-bottom-color: var(--gold); }
.nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all .2s;
  white-space: nowrap;          /* keep "Buy Toolkit" on one line */
  display: inline-block;
  line-height: 1;
}
.nav-cta:hover { background: var(--gold); color: var(--navy) !important; border-bottom: 2px solid transparent !important; }
.nav-links a, .nav-links button { white-space: nowrap; }  /* all nav items stay single-line */

.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all .15s;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 90px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.18), transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(31,168,229,0.12), transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero p.lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 30px;
  line-height: 1.55;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-tag {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 0;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(201,168,76,0.4); color: var(--navy); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }

.btn-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── SECTIONS ── */
section { padding: 80px 0; }
section.alt { background: var(--bg-soft); }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

/* ── CARDS / GRIDS ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  transition: all .25s;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,30,61,0.08); }

.card .icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}

.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0; }

/* ── PROBLEM/SOLUTION STRIP ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-img {
  background: linear-gradient(135deg, #0E2244, #2C5F9B);
  border-radius: 20px;
  padding: 50px;
  color: #fff;
  text-align: center;
}
.split-img img { margin: 0 auto; max-width: 220px; }
.split-img .badge { color: var(--gold-light); font-weight: 600; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.price-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--gold);
  transform: scale(1.03);
}
.price-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.price-card h3 { color: var(--navy); margin-bottom: 6px; }
.price-card .price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 10px 0 4px;
}
.price-card .price-amount sup { font-size: 1.2rem; font-weight: 500; vertical-align: super; }
.price-card .price-period { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; }
.price-card ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.95rem;
}
.price-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.price-card .btn { margin-top: auto; justify-content: center; }

/* ── FAQ ── */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 12px;
  background: #fff;
  cursor: pointer;
}
.faq summary {
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 980px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 14px;
  background: #fff;
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form label { display:block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--text); }
.contact-info-card {
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 36px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card .row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.contact-info-card .row a { color: var(--gold-light); }
.contact-info-card .row .ico { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }

/* ── TESTIMONIALS ── */
.quote {
  background: #fff;
  border-left: 4px solid var(--gold);
  padding: 26px 28px;
  border-radius: 0 16px 16px 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
}
.quote .who { margin-top: 14px; font-style: normal; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.quote .who span { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { color: #fff; font-family: inherit; font-size: 0.95rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.site-footer ul a:hover { color: var(--gold-light); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── E-BOOK LIBRARY ── */
.ebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.ebook-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .2s;
}
.ebook-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11,30,61,0.10); border-color: var(--gold); }
.ebook-cover {
  aspect-ratio: 16 / 9;          /* compact landscape banner, was portrait book cover */
  background: var(--bg-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px !important;       /* overrides inline padding:20px */
  font-size: 0.95rem !important;  /* overrides inline 1.4rem so titles fit on small cover */
  text-align: center;
}
.ebook-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ebook-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ebook-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 6px;
}
.ebook-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.25;
}
.ebook-meta {
  display: flex;
  gap: 10px;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.ebook-meta span { display: inline-flex; align-items: center; gap: 3px; }
.ebook-card p.desc {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;           /* truncate to 3 lines; full text on hover via title attr */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ebook-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.ebook-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}
.ebook-price sup { font-size: 0.7rem; font-weight: 500; vertical-align: top; margin-right: 1px; }
.ebook-buy {
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.ebook-buy:hover { background: var(--gold); color: var(--navy); }

.ebook-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.ebook-cat {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.ebook-cat:hover, .ebook-cat.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.bundle-cta {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  margin-top: 50px;
}
.bundle-cta h3 { color: #fff; font-size: 1.8rem; margin-bottom: 10px; }
.bundle-cta p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .price-card.featured { transform: none; }
}
@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: inline-block; }
  .hero { padding: 60px 0 80px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 60px 0; }
}

/* ── PHONE: 600px and below (covers 375-414px range) ── */
@media (max-width: 600px) {
  /* Container tighter padding */
  .container { padding: 0 16px; }

  /* Hero — most common overlap source */
  .hero { padding: 40px 0 50px; }
  .hero h1 { font-size: 1.85rem; line-height: 1.25; word-wrap: break-word; }
  .hero p { font-size: 1rem; }
  .hero .btn { display: inline-block; margin: 6px 4px; padding: 12px 22px; font-size: 0.95rem; }

  /* Section spacing */
  section { padding: 40px 0; }
  h2 { font-size: 1.6rem; line-height: 1.25; }
  h3 { font-size: 1.25rem; line-height: 1.3; }

  /* Pricing card — force single column, full width */
  .price-card { padding: 28px 20px; }
  .price-card.featured { transform: none; }
  .price-amount { font-size: 2.5rem; }

  /* Feature grid */
  .features-grid { grid-template-columns: 1fr; gap: 16px; }

  /* E-book cards */
  .ebook-grid { grid-template-columns: 1fr; gap: 16px; }
  .ebook-card { padding: 18px; }

  /* Comparison table — allow horizontal scroll instead of overflow */
  .comparison-table { font-size: 0.85rem; }
  .comparison-table th, .comparison-table td { padding: 10px 8px; }

  /* CTAs — full width on small screens */
  .btn { width: 100%; max-width: 320px; text-align: center; }
  .btn-row .btn { width: auto; min-width: 140px; }

  /* Floating chat widget — smaller, lower, more transparent */
  #hs-chat-widget {
    right: 12px !important;
    bottom: 12px !important;
    gap: 8px !important;
  }
  #hs-chat-widget a {
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
  }

  /* Header — prevent brand + burger overlap on phones */
  .site-header { padding: 10px 0; }
  .site-header .container.nav { gap: 8px; }
  .brand { font-size: 0.95rem; gap: 8px; min-width: 0; flex: 1; }
  .brand img { width: 36px; height: 36px; flex-shrink: 0; }
  .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-toggle { font-size: 1.5rem; padding: 4px 8px; flex-shrink: 0; }
  .nav-links { top: 60px; }  /* match new header height */

  /* Forms */
  input, textarea, select { font-size: 16px; } /* prevents iOS auto-zoom */

  /* Footer */
  .site-footer { padding: 40px 0 30px; font-size: 0.9rem; }

  /* Testimonials */
  .testimonial-card { padding: 22px; }

  /* FAQ section */
  .faq-item { padding: 16px; }
  .faq-question { font-size: 1.05rem; }

  /* Bundle CTA */
  .bundle-cta { padding: 32px 20px; margin-top: 30px; }
  .bundle-cta h3 { font-size: 1.4rem; }

  /* Modal (payment modal) */
  #hsBuyModal > div { padding: 22px 18px !important; }

  /* Audit quiz — option buttons */
  .quiz-option { padding: 14px 16px; font-size: 0.95rem; }
}

/* ── VERY SMALL: 380px and below (iPhone SE, older Androids) ── */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .hero h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
  .price-amount { font-size: 2.1rem; }
  #hs-chat-widget a { width: 40px !important; height: 40px !important; }
  /* Tiny phones: hide brand text, keep logo only */
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 0.85rem; max-width: 180px; }
}

/* ═══════════════════════════════════════════════════════════════════
   LIBRARY DESIGN SYSTEM v1.0 (Jun 18, 2026)
   Unified hero, nav-dropdown, category colors, and cards
   across all e-book pages (Vol 1/2/3/4 + Library Hub).
═══════════════════════════════════════════════════════════════════ */

/* ── Category palette (8 categories anchored to navy+gold brand) ── */
:root {
  --cat-revenue:    #C9A84C;  /* Gold */
  --cat-operations: #0B1E3D;  /* Navy */
  --cat-leadership: #7A2E3A;  /* Burgundy */
  --cat-guest:      #2D6E7E;  /* Teal */
  --cat-marketing:  #D85F4C;  /* Coral */
  --cat-sales:      #3D6B4A;  /* Forest */
  --cat-ownership:  #475569;  /* Slate */
  --cat-brand:      #8B5A2B;  /* Bronze */
  --cat-foundation: #6B7280;  /* Stone — Vol 1 generic */
}

/* ── Unified library hero (matches Vol 4 navy gradient) ── */
.lib-hero {
  background: linear-gradient(135deg, #0B1E3D 0%, #1a3a6b 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.lib-hero::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(201,168,76,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.lib-hero .container { position: relative; z-index: 1; text-align: center; }
.lib-hero .vol-tag {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  color: #C9A84C;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.lib-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
}
.lib-hero p.lib-lead {
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto 16px;
  line-height: 1.55;
}
.lib-hero .lib-meta {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
}
.lib-hero .lib-meta strong { color: #C9A84C; }

/* ── Card with category color top-border ── */
.lib-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--cat-color, #C9A84C);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.lib-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11,30,61,0.12);
}
.lib-card .lib-cover {
  background: #f8fafc;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.lib-card .lib-cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.lib-card .lib-cat-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--cat-color, #C9A84C);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 4px 11px;
  border-radius: 50px;
  text-transform: uppercase;
}
.lib-card .lib-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.lib-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #0B1E3D;
  font-size: 1.05rem;
  margin: 0 0 6px;
  line-height: 1.3;
}
.lib-card .lib-meta-row {
  color: #6b7280;
  font-size: 0.78rem;
  margin-bottom: 8px;
}
.lib-card .lib-desc {
  color: #4A5365;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
}
.lib-card .lib-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f3f7;
}
.lib-card .lib-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0B1E3D;
  font-family: 'Playfair Display', Georgia, serif;
}
.lib-card .lib-buy {
  background: var(--cat-color, #0B1E3D);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.lib-card .lib-buy:hover { filter: brightness(0.92); transform: translateY(-1px); }

/* Category color modifiers — apply to .lib-card */
.cat-revenue    { --cat-color: var(--cat-revenue); }
.cat-operations { --cat-color: var(--cat-operations); }
.cat-leadership { --cat-color: var(--cat-leadership); }
.cat-guest      { --cat-color: var(--cat-guest); }
.cat-marketing  { --cat-color: var(--cat-marketing); }
.cat-sales      { --cat-color: var(--cat-sales); }
.cat-ownership  { --cat-color: var(--cat-ownership); }
.cat-brand      { --cat-color: var(--cat-brand); }
.cat-foundation { --cat-color: var(--cat-foundation); }

/* ── Filter pill row ── */
.lib-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0 36px;
}
.lib-filter-pill {
  background: #fff;
  color: #0B1E3D;
  border: 1px solid #d1d5db;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.lib-filter-pill:hover { border-color: var(--cat-color, #C9A84C); transform: translateY(-1px); }
.lib-filter-pill.active {
  background: var(--cat-color, #0B1E3D);
  color: #fff;
  border-color: var(--cat-color, #0B1E3D);
}

/* ── Library Hub category blocks ── */
.cat-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin: 30px 0;
}
.cat-hub-block {
  background: linear-gradient(135deg, var(--cat-color) 0%, color-mix(in srgb, var(--cat-color) 70%, #000) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 26px 22px;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  min-height: 120px;
}
.cat-hub-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(11,30,61,0.18);
}
.cat-hub-block .cat-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
  display: block;
}
.cat-hub-block h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-family: 'Playfair Display', Georgia, serif;
  color: #fff;
}
.cat-hub-block .cat-count {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* ── Nav dropdown (replaces 4 e-book nav slots) ── */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: '▾';
  margin-left: 5px;
  font-size: 0.7em;
  opacity: 0.7;
}
.dropdown-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(11,30,61,0.16);
  border: 1px solid #e5e7eb;
  padding: 12px 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.18s;
  transform-origin: top center;
  z-index: 999;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px;
  background: #fff;
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(2px);
}
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: #0B1E3D;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover {
  background: #f8fafc;
  color: #C9A84C;
}
.dropdown-menu a strong { color: #C9A84C; font-weight: 700; }
.dropdown-menu hr {
  border: none;
  border-top: 1px solid #f1f3f7;
  margin: 6px 0;
}
.dropdown-menu .dd-meta {
  display: block;
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 400;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .has-dropdown .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(11,30,61,0.04);
    min-width: 0;
    opacity: 1;
    visibility: visible;
    padding: 6px 0;
    margin: 4px 0;
  }
  .dropdown-menu::before { display: none; }
  .has-dropdown > a::after { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   HOTFIX (Jun 18, 2026): brand logo no-wrap + nav overlap prevention
═══════════════════════════════════════════════════════════════════ */
.brand {
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 0;
}
.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav {
  flex-wrap: nowrap;
}
.nav-links {
  flex-wrap: nowrap;
}

/* Tablet sizes: shrink fonts so everything fits on one line */
@media (max-width: 1100px) and (min-width: 769px) {
  .brand { font-size: 1rem; }
  .brand img { width: 38px; height: 38px; }
  .nav-links { gap: 18px; font-size: 0.92rem; }
  .nav-links a { padding: 4px 0; }
}

@media (max-width: 900px) and (min-width: 769px) {
  /* On smaller desktops, hide the verbose brand text and keep just "HS" */
  .brand span { max-width: 160px; font-size: 0.9rem; }
}


/* Trust badges grid — 4 columns desktop, 2 columns mobile */
@media (max-width: 640px) {
  .trust-badges-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
}
