/* ---------------------------------------
   CSS RESET & BASE STYLES
---------------------------------------- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
body {
  line-height: 1.5;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #262626;
  background-color: #F7F7F9;
  font-size: 16px;
  min-height: 100vh;
}
*, *::before, *::after {
  box-sizing: inherit;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
a {
  color: #377BBA;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #163251;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.6em;
  margin-bottom: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
strong, b {
  font-weight: bold;
}
hr {
  border: 0;
  border-top: 1px solid #E9E8F1;
  margin: 32px 0;
}

/* --------------------------------------
   BRAND FONTS (with serif fallback)
--------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #163251;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.625rem;
  line-height: 1.09;
  font-weight: 700;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.18;
  font-weight: 700;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p, li, span {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #262626;
}

/* --------------------------------------
   LAYOUT CONTAINERS (Flexbox ONLY)
--------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

/* Hero spacing variant */
.hero .content-wrapper { gap: 24px; align-items: flex-start; }
.hero { background: #fff; border-radius: 16px; margin-bottom: 60px; box-shadow: 0 3px 28px 0 rgba(22,50,81,0.06); }
.hero h1 { font-size: 2.5rem; }
@media (max-width: 768px) {
  .hero { padding-top: 28px; padding-bottom: 24px; margin-bottom: 30px; }
  .hero h1 { font-size: 2rem; }
  .container { padding: 0 10px; }
}

/* FLEX CONTAINERS: SPECIFIED BY MANDATE */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px 0 rgba(22,50,81,0.08);
  border: 1px solid #E9E8F1;
  margin-bottom: 20px;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .24s, transform .22s;
}
.card:hover {
  box-shadow: 0 16px 40px 0 rgba(22,50,81,0.18);
  transform: translateY(-4px);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section, .content-grid, .card-container { flex-direction: column; gap: 18px; }
  .content-wrapper { gap: 18px; }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 20px 24px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #DBDEE7;
  box-shadow: 0 3px 16px 0 rgba(22,50,81,0.09);
  margin-bottom: 20px;
  max-width: 540px;
  min-width: 220px;
  font-style: italic;
}
.testimonial-card strong {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  font-style: normal;
  color: #163251;
  margin-top: 2px;
  letter-spacing: 0.01em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border: 1px solid #E9E8F1;
  border-radius: 14px;
  padding: 26px 20px 18px 20px;
  box-shadow: 0 1.5px 14px 0 rgba(22,50,81,0.07);
  flex: 1 1 200px;
  min-width: 220px;
  transition: box-shadow .22s;
}
.feature-item img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}
.feature-item:hover {
  box-shadow: 0 10px 36px 0 rgba(22,50,81,0.13);
}

/* List containers inside feature and articles */
.feature-grid,
.service-cards,
.article-list,
.job-cards,
.service-offerings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .feature-grid, .service-cards, .article-list, .job-cards, .service-offerings {
    gap: 16px;
  }
}
@media (max-width: 700px) {
  .feature-item, .service-card, .article-card, .job-card { min-width: 0; width: 100%; }
  .feature-grid, .service-cards, .article-list, .job-cards, .service-offerings { flex-direction: column; }
}

/* --------------------------------------
   HEADER & NAVIGATION
--------------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #E9E8F1;
  box-shadow: 0 2px 18px 0 rgba(34,56,102,0.04);
  position: relative;
  z-index: 30;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 18px 0 18px 0;
  font-family: 'Georgia', serif;
  font-size: 1.11rem;
  font-weight: 500;
}
.main-nav > a {
  padding: 6px 8px;
  border-radius: 6px;
  color: #163251;
  transition: background .16s, color .14s;
  position: relative;
}
.main-nav > a.primary-cta {
  background: #377BBA;
  color: #fff;
  font-weight: 700;
  padding: 8px 24px;
  margin-left: 10px;
  border-radius: 24px;
  box-shadow: 0 2px 16px 0 rgba(55,123,186,0.11);
  transition: background .18s, color .18s, box-shadow .26s;
}
.main-nav > a.primary-cta:hover {
  background: #163251;
  color: #fff;
  box-shadow: 0 5px 22px 0 rgba(22,50,81,0.15);
}
.main-nav > a:hover:not(.primary-cta),
.main-nav > a:focus:not(.primary-cta) {
  background: #E9E8F1;
  color: #377BBA;
}
.main-nav > a img {
  height: 36px;
  vertical-align: middle;
  margin-right: 0px;
}

/* MOBILE MENU/HAMBURGER */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: #377BBA;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  margin-left: auto;
  cursor: pointer;
  transition: background .15s;
  z-index: 55;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #163251;
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 18px;
    right: 20px;
  }
}

/* Mobile Slide Menu Overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 10px 48px 0 rgba(22,50,81,0.16);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.37s cubic-bezier(.87,.11,.2,.97);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  font-size: 2rem;
  color: #163251;
  border: none;
  align-self: flex-end;
  margin: 24px 18px 0 0;
  cursor: pointer;
  transition: color .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #377BBA;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 24px;
  padding-left: 28px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #163251;
  font-family: 'Georgia', serif;
  letter-spacing: 0.02em;
  padding: 12px 0;
  border-bottom: 1px solid #E9E8F1;
  transition: background .16s, color .18s;
}
.mobile-nav a:last-child {
  border-bottom: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #377BBA;
  background: #F7F7F9;
  border-radius: 7px;
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* --------------------------------------
   SEARCH BAR & FILTERS
--------------------------------------- */
.search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px 12px;
  background: #F7F7F9;
  border: 1px solid #DBDEE7;
  border-radius: 12px;
  box-shadow: 0 1px 10px 0 rgba(34,56,102,0.05);
  padding: 24px 20px;
  margin-bottom: 12px;
}
.search-bar label {
  font-size: 0.98rem;
  font-family: 'Georgia', serif;
  font-weight: 600;
  color: #163251;
}
.search-bar input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #E9E8F1;
  border-radius: 8px;
  font-size: 1rem;
  width: 200px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.search-bar button {
  background: #377BBA;
  color: #fff;
  border-radius: 18px;
  border: none;
  padding: 9px 30px;
  font-size: 1.01rem;
  font-family: 'Georgia', serif;
  font-weight: 600;
  transition: background 0.23s, box-shadow 0.25s;
  cursor: pointer;
  box-shadow: 0 1px 7px 0 rgba(55,123,186,0.09);
  margin-left: 12px;
}
.search-bar button:hover, .search-bar button:focus {
  background: #163251;
  box-shadow: 0 6px 18px 0 rgba(22,50,81,0.09);
}
@media (max-width: 600px) {
  .search-bar { flex-direction: column; gap: 7px; }
  .search-bar input[type="text"] { width: 100%; }
  .search-bar button { margin-left: 0; width: 100%; }
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 12px;
}
.filter-options label, .sort-controls label {
  font-size: 0.99rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-right: 18px;
  color: #163251;
}
.filter-options input[type="checkbox"] {
  accent-color: #377BBA;
  margin-right: 5px;
}
.sort-controls select {
  padding: 6px 12px;
  border: 1px solid #DBDEE7;
  border-radius: 8px;
  background: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
}
@media (max-width: 600px) {
  .filters { flex-direction: column; gap: 6px; }
}

/* --------------------------------------
   JOB CARD / SERVICE CARD STYLES
--------------------------------------- */
.job-cards, .service-cards, .article-list, .service-offerings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.job-card, .service-card, .article-card {
  background: #fff;
  border: 1px solid #E9E8F1;
  border-radius: 14px;
  box-shadow: 0 2.5px 14px 0 rgba(22,50,81,0.06);
  padding: 28px 20px 18px 20px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .20s, transform .20s;
}
.job-card:hover, .service-card:hover, .article-card:hover {
  box-shadow: 0 9px 36px 0 rgba(22,50,81,0.13);
  transform: translateY(-3px);
}
.job-card h3, .service-card h3, .article-card h3 { margin-bottom: 9px; }
.job-card p, .service-card p, .article-card p { margin-bottom: 8px; }

/* Pagination */
.pagination {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pagination span {
  font-weight: bold;
  color: #163251;
}
.pagination a {
  padding: 4px 12px;
  border-radius: 8px;
  background: #E9E8F1;
  color: #163251;
  font-weight: 600;
  transition: background .18s, color .14s;
}
.pagination a:hover, .pagination a:focus { background: #377BBA; color: #fff; }

/* BENEFIT HIGHLIGHTS (Employers page) */
.benefit-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}
.benefit-highlights div {
  display: flex;
  align-items: center;
  background: #F7F7F9;
  border-radius: 10px;
  padding: 9px 20px;
  gap: 13px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}
.benefit-highlights img { width: 24px; height: 24px; }

/* Icon List */
.icon-list {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-top: 5px;
  align-items: center;
}
.icon-list img { width: 32px; height: 32px; }

/* Client Logos (Testimonials) */
.client-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 10px;
  margin-bottom: 0;
}
.client-logos img { height: 40px; width: auto; }

/* --------------------------------------
   CTA BUTTONS
--------------------------------------- */
.primary-cta {
  display: inline-block;
  font-family: 'Georgia', serif;
  font-size: 1.09rem;
  background: #163251;
  color: #fff !important;
  padding: 12px 34px;
  border-radius: 26px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .04em;
  border: none;
  box-shadow: 0 2px 16px 0 rgba(22,50,81,0.06);
  transition: background 0.22s, color 0.17s, box-shadow 0.24s;
  cursor: pointer;
  margin-top: 10px;
}
.primary-cta:hover, .primary-cta:focus {
  background: #377BBA;
  color: #fff !important;
  box-shadow: 0 8px 34px 0 rgba(55,123,186,0.14);
  text-decoration: none;
}

/* --------------------------------------
   FOOTER
--------------------------------------- */
footer {
  background: #163251;
  color: #fff;
  padding: 44px 0 28px 0;
  font-family: 'Open Sans', Arial, sans-serif;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  justify-content: center;
  align-items: center;
}
.footer-nav a {
  color: #E9E8F1;
  font-size: 0.97rem;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background .16s, color .17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #377BBA;
  color: #fff;
}
.footer-contact, .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.97rem;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  margin-bottom: 5px;
}
.footer-contact img {
  width: 16px;
  height: 16px;
  filter: grayscale(1) brightness(2);
}
.footer-brand img {
  height: 36px;
  margin-top: 16px;
  opacity: 0.92;
}
@media (max-width: 700px) {
  .footer-nav { flex-direction: column; gap: 8px; }
}

/* --------------------------------------
   RESPONSIVE UTILITIES
--------------------------------------- */
@media (max-width: 1000px) {
  .container { max-width: 920px; }
}
@media (max-width: 768px) {
  section {padding: 32px 5px; margin-bottom: 36px;}
  h1 {font-size: 2rem;}
  h2 {font-size: 1.45rem;}
  h3 {font-size: 1.09rem;}
  .feature-item, .testimonial-card, .job-card, .service-card, .article-card {padding: 18px 12px;}
}

/* --------------------------------------
   MICRO-INTERACTIONS/TRANSITIONS
--------------------------------------- */
.button, button, .primary-cta {
  transition: background .23s, color .19s, box-shadow .22s, border .12s;
}
.card, .feature-item, .job-card, .service-card, .article-card {
  transition: box-shadow .22s, transform .15s;
}
.nav-link, .footer-nav a, .mobile-nav a {
  transition: background .18s, color .21s;
}

/* --------------------------------------
   COOKIE CONSENT BANNER & MODAL
--------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #163251;
  color: #fff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 22px 24px;
  gap: 22px;
  box-shadow: 0 -4px 28px 0 rgba(34,56,102,0.10);
  font-size: 0.97rem;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: transform 0.32s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner__message {
  flex: 1 1 220px;
  min-width: 190px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn, .cookie-btn:visited {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  padding: 7px 22px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 14px 0 rgba(55,123,186,0.07);
  transition: background .17s, color .11s, box-shadow .22s;
}
.cookie-btn.accept {
  background: #377BBA;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #2a5682;
}
.cookie-btn.reject {
  background: #fff;
  color: #163251;
  border: 1px solid #e1e1e1;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E9E8F1;
  color: #163251;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 7px 22px;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #377BBA;
  color: #fff;
  border-color: #377BBA;
}
@media (max-width: 600px) {
  .cookie-banner {flex-direction: column; align-items: stretch; font-size: 1rem; gap: 15px; padding: 21px 10px;}
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,56,102,0.33);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .17s;
}
.cookie-modal {
  background: #fff;
  color: #163251;
  border-radius: 14px;
  padding: 36px 24px 28px 24px;
  box-shadow: 0 8px 44px 0 rgba(34,56,102,0.17);
  max-width: 420px;
  width: 100%;
  font-family: 'Open Sans', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.67rem;
  background: none;
  color: #163251;
  border: none;
  cursor: pointer;
}
.cookie-modal__close:focus {
  color: #377BBA;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-size: 1.09rem;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-category input[type="checkbox"] {
  accent-color: #377BBA;
  width: 18px;
  height: 18px;
}
.cookie-category.essential label,
.cookie-category.essential input[type="checkbox"] {
  opacity: 0.7;
  pointer-events: none;
}
.cookie-modal__actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Ensure all modal/overlay is above everything else */

/* --------------------------------------
   ACCESSIBILITY FOCUS STATES
--------------------------------------- */
a:focus, button:focus, .primary-cta:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 2px solid #377BBA;
  outline-offset: 2px;
}

/* --------------------------------------
   MISCELLANEOUS
--------------------------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.99rem;
  color: #377BBA;
  margin-bottom: 8px;
  font-family: 'Georgia', serif;
}
.use-cases ul, .categories {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.use-cases ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
}
.use-cases ul li::before {
  content: "\2022";
  color: #377BBA;
  position: absolute;
  left: 0;
  font-size: 1.2em;
}
.article-card span {
  display: inline-block;
  font-size: 0.95rem;
  color: #377BBA;
  margin-top: 3px;
}

/* Contact details styling */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-info img {
  width: 18px;
  height: 18px;
}

/* Ensure legal and privacy pages hierarchy */
main section h1, main section h2 {
  margin-bottom: 18px;
}
main section ul, main section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Thank You Page List */
.hero ul { margin-top: 10px; margin-bottom: 18px; padding-left: 20px; }

/* Hide visually for screen readers */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; border:0; padding:0; margin:-1px; }

/* --------------------------------------
   END OF CSS
--------------------------------------- */
