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

:root {
  --white: #ffffff;
  --bg: #fafafa;
  --bg2: #f3f3f3;
  --bg3: #eee;
  --surface: #ffffff;
  --border: #e8e8e8;
  --border2: #ddd;
  --text: #111;
  --text2: #333;
  --muted: #666;
  --faint: #aaa;
  --yellow: #f5c518;
  --yellow-dark: #dbae00;
  --yellow-dim: rgba(245,197,24,0.1);
  --yellow-border: rgba(245,197,24,0.3);
  --yellow-glow: rgba(245,197,24,0.15);
  --ink: #0f0f0f;
  --ink2: #1a1a1a;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  /* widget color aliases */
  --orange: var(--yellow);
  --orange-dim: var(--yellow-dim);
  --orange-mid: var(--yellow-border);
  --box-shadow-2: 0 4px 20px 0 rgba(15,15,15,0.06);
  --box-shadow-3: 0 4px 20px 0 rgba(15,15,15,0.14);
}

html, body { overflow-x: hidden; background: var(--bg); color: var(--text); font-family: 'Mulish', sans-serif; }
html { -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

body.all-pages { display: flex; flex-direction: column; min-height: 100vh; }
body.all-pages .container.main { margin-top: 32px; }

/* ─── TYPOGRAPHY ─── */
h1 { font-family: 'Lora', serif; font-weight: 700; line-height: 1.15; }
h2, h3, h4, h5, h6 { font-family: 'Mulish', sans-serif; font-weight: 700; line-height: 1.25; }
p { font-family: 'Mulish', sans-serif; }

/* ─── TOPBAR ─── */
.topbar {
  background: #c0392b;
  width: 100%;
  padding: 8px 48px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  text-align: center;
}

/* ─── NAV ─── */
nav {
  background: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 60px;
}
.logo { height: 24px; display: block; flex-shrink: 0; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 99px; transition: all .2s;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.08); }
.nav-cta {
  background: var(--yellow) !important; color: var(--ink) !important;
  border-radius: 99px; margin-left: 6px; padding: 8px 20px !important;
  font-weight: 700 !important; transition: all .2s !important;
}
.nav-cta:hover { background: #ffe14d !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0; z-index: 199;
  background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 20px 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  flex-direction: column; gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.7); font-size: 15px; font-weight: 600;
  padding: 14px 16px; border-radius: var(--radius-sm); transition: all .2s;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.06); color: white; }
.mobile-menu .m-cta {
  background: var(--yellow); color: var(--ink) !important;
  text-align: center; border-radius: var(--radius-sm); margin-top: 8px;
  padding: 14px 16px; font-weight: 700;
}

/* ─── HERO ─── */
.hero {
  background: var(--ink);
  padding: 80px 48px 64px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--yellow-glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: 640px; margin: 0 auto;
  position: relative; z-index: 1;
}

.h-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--yellow);
  margin-bottom: 24px;
  background: rgba(245,197,24,0.08); border: 1px solid rgba(245,197,24,0.15);
  padding: 6px 16px; border-radius: 99px;
}
.h-label-dot {
  width: 6px; height: 6px; background: var(--yellow); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }

.hero h1 {
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -2px; color: var(--white);
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--yellow); }

.hero-desc {
  font-size: 16.5px; color: rgba(255,255,255,0.45); line-height: 1.6;
  max-width: 460px; margin: 0 auto 40px; font-weight: 400;
}

.search-bar {
  display: flex;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 99px; overflow: hidden;
  max-width: 520px; margin: 0 auto;
  transition: all .25s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.search-bar:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px var(--yellow-glow);
  background: rgba(255,255,255,0.1);
}
.search-bar input {
  flex: 1; border: none; outline: none;
  padding: 16px 24px; font-size: 15px;
  font-family: 'Mulish', sans-serif; color: white; background: transparent;
  min-width: 0; font-weight: 500;
}
.search-bar input::placeholder { color: rgba(255,255,255,0.3); }
.search-bar button {
  background: var(--yellow); border: none; cursor: pointer;
  padding: 0 28px; color: var(--ink);
  font-family: 'Mulish', sans-serif;
  font-size: 14px; font-weight: 700;
  border-radius: 99px; margin: 6px 6px 6px 0;
  transition: background .2s; white-space: nowrap; flex-shrink: 0;
}
.search-bar button:hover { background: #ffe14d; }

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px;
  justify-content: center;
}
.htag {
  font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 99px; padding: 7px 16px;
  cursor: pointer; transition: all .2s;
}
.htag:hover { color: var(--yellow); border-color: rgba(245,197,24,0.25); background: rgba(245,197,24,0.06); }

/* ─── TRUST ─── */
.trust {
  background: var(--white); padding: 16px 48px;
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.ti { display: flex; align-items: center; gap: 8px; }
.ti-icon { font-size: 13px; }
.ti-text { font-size: 12.5px; font-weight: 600; color: var(--faint); }
.ti-text strong { color: var(--text); }

/* ─── MAIN ─── */
.main { max-width: 1080px; margin: 0 auto; padding: 48px 48px 56px; }

/* ─── SECTION HEADER ─── */
.sh {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.sh-title {
  font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 10px;
}
.sh-title::before {
  content: '';
  width: 4px; height: 18px; border-radius: 4px;
  background: var(--yellow); flex-shrink: 0;
}
.sh-sub { font-size: 13px; color: var(--faint); margin-top: 2px; }
.sh-link {
  font-size: 12px; font-weight: 700; color: var(--muted);
  cursor: pointer; white-space: nowrap; transition: color .2s;
  padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border);
}
.sh-link:hover { color: var(--ink); border-color: var(--border2); background: var(--bg2); }

/* ─── DIRECTORY LISTINGS ─── */
.dir-section { margin-bottom: 40px; }
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
/* .dir-item is a transparent wrapper — card lives on .dir-text */
.dir-grid .dir-text {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  row-gap: 2px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .18s;
}
.dir-grid .dir-text:hover {
  border-color: var(--yellow-border);
  box-shadow: 0 2px 12px var(--yellow-glow);
  transform: translateY(-1px);
}
.dir-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 22px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2);
  border-radius: var(--radius-xs);
}
.dir-name {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  transition: color .15s; line-height: 1.25;
  overflow-wrap: break-word; word-break: break-word;
}
.dir-grid .dir-text:hover .dir-name { color: #b8960a; }
.dir-meta {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  font-size: 11.5px; color: var(--faint); font-weight: 500;
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink); padding: 40px 48px;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
}
.footer-logo { height: 24px; display: block; }
.f-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.f-links a { font-size: 12.5px; color: rgba(255,255,255,0.25); font-weight: 600; transition: color .2s; }
.f-links a:hover { color: rgba(255,255,255,0.6); }
.f-copy { font-size: 12px; color: rgba(255,255,255,0.25); font-weight: 500; }
.f-disclaimer { max-width: 600px; font-size: 11px; color: rgba(255,255,255,0.14); line-height: 1.6; margin-top: 4px; }
.footer-copy { width: 100%; font-size: 11px; color: rgba(255,255,255,0.18); line-height: 1.6; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; }

/* ─── SEARCHBAR ─── */
.searchbar { padding: 16px 48px; margin-bottom: 32px; background: var(--bg); }
#searchbar form { display: flex; gap: 8px; }
.search-input {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-family: 'Mulish', sans-serif;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--white);
  color: var(--text);
}
.search-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-glow);
}
.search-btn {
  padding: 10px 24px;
  background: var(--yellow);
  border: none; border-radius: var(--radius-sm);
  font-family: 'Mulish', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--ink); cursor: pointer; transition: background .2s;
}
.search-btn:hover { background: #ffe14d; }

/* ─── CONTACT FORM ─── */
.contact {
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 0;
}
.contact p {
  margin-bottom: 14px;
}
.contact input[type="text"],
.contact input[type="email"],
.contact textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  font-family: 'Mulish', sans-serif;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  display: block;
}
.contact input[type="text"]::placeholder,
.contact input[type="email"]::placeholder,
.contact textarea::placeholder {
  color: var(--faint);
  font-weight: 400;
}
.contact input[type="text"]:focus,
.contact input[type="email"]:focus,
.contact textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-glow);
}
.contact textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}
.contact button[type="submit"] {
  width: 100%;
  padding: 14px 24px;
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Mulish', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s;
  margin-top: 4px;
}
.contact button[type="submit"]:hover { background: #ffe14d; }

/* ─── ANIMATIONS ─── */
@keyframes up { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
.hero-inner > * { animation: up .5s ease both; }
.h-label { animation-delay:.05s; }
.hero h1 { animation-delay:.1s; }
.hero-desc { animation-delay:.18s; }
.search-bar { animation-delay:.26s; }
.hero-tags { animation-delay:.34s; }

/* ═══ TABLET ═══ */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .topbar { padding: 8px 24px; }
  .searchbar { padding: 12px 24px; }
  .hero { padding: 64px 24px 52px; }
  .main { padding: 40px 24px; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 32px 24px; }
  .dir-content { padding: 40px 24px; }
}

/* ═══ MOBILE ═══ */
@media (max-width: 768px) {
  nav { padding: 0 16px; height: 56px; }
  .topbar { padding: 8px 16px; }
  .logo { height: 28px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { top: 56px; }
  .hero { padding: 48px 16px 44px; }
  .hero h1 { font-size: clamp(30px, 9vw, 44px); letter-spacing: -1px; }
  .hero-desc { font-size: 15px; margin-bottom: 32px; }
  .search-bar { border-radius: var(--radius); flex-direction: column; }
  .search-bar input { padding: 15px 18px; border-radius: var(--radius) var(--radius) 0 0; width: 100%; }
  .search-bar button { margin: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 14px 24px; width: 100%; }
  .hero-tags { gap: 6px; }
  .htag { font-size: 11.5px; padding: 6px 13px; }
  .searchbar { padding: 12px 16px; }
  #searchbar form { flex-direction: column; }
  .search-input { width: 100%; }
  .search-btn { width: 100%; }
  .trust { padding: 14px 16px; gap: 16px; justify-content: center; }
  .main { padding: 32px 16px; }
  .sh-title { font-size: 16px; }
  .sh-link { font-size: 11px; padding: 5px 12px; }
  .dir-grid { grid-template-columns: 1fr; gap: 8px; }
  footer { padding: 28px 16px; }
  .footer-logo { height: 28px; }
  .f-links { gap: 16px; }
  .dir-content { padding: 32px 16px; }
}

/* ═══ SMALL MOBILE ═══ */
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .dir-icon { width: 36px; height: 36px; font-size: 18px; }
  .dir-name { font-size: 13px; }
}

/* ─── LAYOUT RESET ─── */
body.home-page .container.main { width: 100%; max-width: 100% !important; padding: 0; }
.container.layout { max-width: 100%; padding: 0 !important; }
.container.layout .row.layout { margin: 0 !important; }
body.home-page .container.layout .row.layout > .cols { padding: 0 !important; }
/* Reset CMS inner wrapper padding so hero/trust reach full width */
body.home-page .container.layout .col-gap { padding: 0 !important; }
body.all-pages .content .container.main { padding: 24px 16px; }

.dir-content { max-width: 1140px !important; margin: 0 auto !important; padding: 52px 48px; background: var(--bg); }

.container.main { max-width: 1600px !important; }

/* ═══════════════════════════════════
            WIDGETS
═══════════════════════════════════ */

/* ---- SUBLIST ---- */

.item-sublist a {
  width: 100%;
  height: 100%;
}

.item.item-bubbles {
  margin-bottom: 32px;
}

.item-bubbles .row {
  margin: 0;
}

.bubbles-chip {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  display: flex;
  font-weight: 600;
  height: 100%;
  padding: 16px 48px 16px 24px;
  position: relative;
  transition: padding 0.2s ease-in-out;
}

.bubbles-chip:hover {
  background: var(--orange-dim);
  border-color: var(--orange-mid);
  padding-left: 20px;
}

.bubbles-chip:active,
.bubbles-chip:focus {
  background: var(--orange-mid);
}

.bubbles-link {
  display: block;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
}

.bubbles-link .bubbles-outer {
  height: 100%;
  padding: 5px;
  max-width: 100%;
}

.col-gap:has(> .item-bubbles)::before { display: none !important; }

.bubbles-chip::after {
  content: url("data:image/svg+xml,%3Csvg width='13' height='12' viewBox='0 0 13 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.87771 7.01782H1.02042C0.737361 7.01782 0.496528 6.91886 0.297917 6.72094C0.0993056 6.52317 0 6.2833 0 6.00136C0 5.71942 0.0993056 5.4781 0.297917 5.2774C0.496528 5.07657 0.737361 4.97615 1.02042 4.97615H8.87771L5.66583 1.76428C5.46111 1.55955 5.35681 1.31719 5.35292 1.03719C5.34889 0.757332 5.45076 0.510249 5.65854 0.295943C5.86632 0.0948319 6.11014 -0.00377823 6.39 0.000110661C6.66986 0.00399955 6.91236 0.108583 7.1175 0.313861L12.0713 5.27407C12.1699 5.37282 12.2464 5.4856 12.3008 5.6124C12.3551 5.73935 12.3823 5.86865 12.3823 6.00032C12.3823 6.13199 12.3551 6.26122 12.3008 6.38803C12.2464 6.51497 12.1727 6.62497 12.0798 6.71803L7.10958 11.688C6.89403 11.9037 6.65368 12.0081 6.38854 12.0012C6.12354 11.9942 5.88715 11.8862 5.67938 11.6772C5.4716 11.4629 5.36771 11.2166 5.36771 10.9382C5.36771 10.6599 5.4716 10.4192 5.67938 10.2162L8.87771 7.01782Z' fill='%23f5c518'/%3E%3C/svg%3E");
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.2s ease-in-out;
}

.bubbles-chip:hover::after {
  right: 10px;
}

/* ---- SUBLIST CARDS ---- */

.item-sublist:has(.sublist.card) .row > div {
  padding: 5px !important;
}

.sublist.card {
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--box-shadow-2);
  transition: all 0.2s ease-in;
}

.sublist.card:hover {
  box-shadow: var(--box-shadow-3);
  color: var(--yellow-dark);
  transform: translateY(-4px);
}

.sublist.card h5 {
  margin-bottom: 0;
  font-weight: 600;
}

.sublist.card .card-body {
  padding: 16px;
}

@media (max-width: 767.98px) {
  .row div:has(> .sublist.card) {
    padding: 0 !important;
  }

  .row:has(> div .sublist.card) {
    margin: 0;
    gap: 10px;
  }

  .sublist.card {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .sublist.card .card-img-top {
    border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));
    width: 120px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .sublist.card .card-body {
    flex: 1;
    padding: 1rem;
  }

  .sublist.card .card-body * {
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .sublist.card .card-body h5 {
    font-size: 16px;
  }
}
