@charset "utf-8";
/* Charity Learning Consortium - knowledge base brand skin.
   Targets HubSpot's default knowledge base theme (header__*, hs-kb-*, footer__* classes).
   Loaded from the domain's Site header HTML. Mirrors the Freshdesk support portal look. */

:root {
  --primary-color: #0055a5;
  --clc-blue: #0055a5;
  --clc-pink: #f92c8b;
  --clc-pink-dark: #d81b75;
  --clc-shadow: 0 0 15px 5px rgba(62, 60, 98, .08);
  --clc-hero: url(https://5416196.fs1.hubspotusercontent-eu1.net/hubfs/5416196/Customer%20Support/support-hero-CLC_4770.jpeg);
}

body, .kb-body-wrapper, .hs-search-field__input, button, input {
  font-family: Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---------- Header: photo band, white logo and white menu ---------- */
.header {
  position: relative;
  background: linear-gradient(rgba(0, 85, 165, .8), rgba(0, 85, 165, .8)), var(--clc-hero) center top / cover no-repeat;
  border-bottom: 0;
}
.header__logo img { filter: brightness(0) invert(1); }
.header__menu-link, .header__menu-link:hover, .header__menu-link:focus,
.header__language-switcher-label, .header__language-switcher-current-label {
  color: #fff !important;
}
.header__menu-link { font-weight: 700; }
.header__menu-link:hover, .header__menu-link:focus { text-decoration: underline; }
.header__button.button {
  background: transparent !important; color: #fff !important; border: 1px solid #fff !important;
  border-radius: 2px; padding: 8px 16px; font-size: 14px; font-weight: 700; line-height: 1.2;
}
.header__button.button:hover, .header__button.button:focus { background: #fff !important; color: var(--clc-blue) !important; }

/* ---------- Header fixes (inner bars carry their own backgrounds) ---------- */
.header__top { background: rgba(0, 0, 0, .15) !important; }
.header__bottom { background: transparent !important; }
.header__top * { color: #fff !important; }
.header__logo-image, .header__logo img { max-width: 210px !important; width: 210px !important; height: auto !important; margin: 6px 0; }
h1, h2, h3, h4, h5, h6, .hs-kb-home-list__text__category-title, .header__menu-link, .footer__menu-link,
.hs-search-field__label, .button { font-family: Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif !important; }
.hs-kb-home-list { grid-template-columns: repeat(auto-fit, minmax(260px, 300px)) !important; justify-content: center !important; }

/* ---------- Search hero: same photo, wave at the bottom ---------- */
.hs-kb-search-input-wrapper {
  position: relative;
  background: transparent !important;
  padding-top: 90px; padding-bottom: 130px;
}
.hs-kb-search-input-wrapper::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1900 80' preserveAspectRatio='none'><path fill='%23ffffff' d='M0,40 C250,5 520,0 900,22 C1300,46 1600,52 1900,18 L1900,80 L0,80 Z'/><path fill='%23ffffff' fill-opacity='.45' d='M0,58 C300,30 700,28 1000,48 C1350,70 1650,64 1900,40 L1900,80 L0,80 Z'/></svg>") center bottom / 100% 100% no-repeat;
}
.hs-search-field__label { color: #fff; font-weight: 400; font-size: 36px; text-align: center; margin-bottom: 18px; }
.hs-kb-search-input-wrapper .hs-search-field__bar { max-width: 640px; margin: 0 auto; }
.hs-search-field__input { background: #fff; padding: 14px 16px; font-size: 16px; border-radius: 2px 0 0 2px; }
.hs-search-field__button, .hs-kb-search-input-wrapper .hs-search-field__bar .hs-search-field__button {
  width: 54px; align-self: stretch; background: var(--clc-pink); border-radius: 0 2px 2px 0;
}
.hs-search-field__button:hover { background: var(--clc-pink-dark); }
.hs-kb-search-input-wrapper .hs-search-field__bar .hs-search-field__button svg { fill: #fff; height: 18px; }

/* ---------- Category list: white cards with soft shadow ---------- */
#main-content { background: #fff; }
.hs-kb-home-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px;
  max-width: 1100px; margin: 0 auto; padding: 30px 24px 60px;
}
.hs-kb-home-list .hs-kb-home-list__category {
  width: auto !important; min-width: 0 !important; max-width: none !important; flex: none !important; margin: 0 !important; box-sizing: border-box;
  background: #fff; border-radius: 8px; box-shadow: var(--clc-shadow); padding: 22px 20px;
  transition: box-shadow .2s, transform .2s;
}
.hs-kb-home-list__category:hover { box-shadow: 0 6px 22px rgba(62, 60, 98, .16); transform: translateY(-2px); }
.hs-kb-home-list__text__category-title { color: var(--clc-blue); font-size: 20px; font-weight: 700; }
.hs-kb-home-list__text__category-description { color: #666; font-size: 15px; line-height: 1.5; }
.hs-kb-home-list__text__category-link, .hs-kb-home-list__text__category-link a { color: var(--clc-blue); font-weight: 700; }

/* Links and headings across KB pages */
.hs-kb-content a, .kb-body-wrapper a:not(.button):not(.header__menu-link):not(.footer__menu-link) { color: var(--clc-blue); }
.hs-kb-content h1, .hs-kb-content h2, .hs-kb-content h3 { color: #333; font-weight: 700; }

/* ---------- Footer: brand blue ---------- */
.footer { background: var(--clc-blue); color: #fff; }
.footer p, .footer__menu-link, .footer__menu-link:hover, .footer__menu-link:focus { color: #fff !important; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .25); }
.footer .widget-type-logo img { filter: brightness(0) invert(1); }
a.hs-kb-social_follow__link { background: rgba(255, 255, 255, .15); color: #fff; }
a.hs-kb-social_follow__link:hover { background: #fff; color: var(--clc-blue); }

@media (max-width: 767px) {
  .hs-search-field__label { font-size: 28px; }
  .hs-kb-search-input-wrapper { padding-bottom: 100px; }
}
