/* Reset and Normalize */
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,
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;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #F3F7FA;
  color: #13436D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-color: #F3F7FA;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #13436D;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.4,0,0.2,1);
}
a:hover, a:focus {
  color: #39A845;
  outline: none;
}
ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #13436D;
  letter-spacing: 0.03em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }
p, li, label { font-size: 1rem; }
.subheadline { font-size: 1.25rem; color: #2D5B89; font-weight: 500; margin-bottom: 24px; }

/* Section and Layout Containers */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 16px 0 rgba(19,67,109,.07);
}
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 0;
}

/* Flex containers for geometric_structured layouts */
.card-container, .card-grid, .recent-posts-grid, .posts-grid, .tips-grid, .resource-list, .testimonial-grid, .feature_grid, .service_list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: space-between;
}
.tips-grid > div,
.resource-list > .resource-item,
.posts-grid > article,
.recent-posts-grid > article {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(19,67,109,0.06);
  padding: 24px 20px;
  flex: 1 1 320px;
  min-width: 270px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.feature_grid, .service_list, .usps {
  gap: 24px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.feature_grid li, .service_list li {
  background: #F3F7FA;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 2px 10px 0 rgba(19,67,109,0.05);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}

/* Testimonials */
.testimonial-slider,
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 2.5px solid #13436D;
  border-radius: 24px 8px 24px 8px;
  /* geometric angular shape */
  box-shadow: 0 6px 24px 0 rgba(19,67,109,0.08);
  min-width: 260px;
  max-width: 400px;
  flex: 1 1 280px;
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.testimonial-card .testimonial-author {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #13436D;
  font-size: 1.02rem;
}
.testimonial-card .star-rating {
  color: #39A845;
  font-size: 1.2rem;
  letter-spacing: 3px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Text-image section */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Value/USP lists */
.values_list, .usps {
  margin: 16px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.usps li {
  background: #F3F7FA;
  border-left: 5px solid #39A845;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #13436D;
  margin-bottom: 12px;
}

/* Team bio list (About page) */
.team-bio-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
  padding: 8px 0 0 0;
}
.timeline {
  background: #F3F7FA;
  border-left: 5px solid #39A845;
  border-radius: 0 14px 14px 0;
  padding: 18px 24px;
  margin-bottom: 16px;
}

/* Card Styles */
.card {
  background: #fff;
  border: 2.5px solid #13436D;
  border-radius: 24px 8px 24px 8px;
  box-shadow: 0 6px 24px 0 rgba(19,67,109,0.09);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* CTA Buttons */
.cta-button, .download-button {
  background: #39A845;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  border: none;
  border-radius: 12px 12px 4px 4px;
  /* geometric */
  padding: 14px 32px;
  box-shadow: 0 2px 8px 0 rgba(56,168,69,0.07);
  transition: background 0.15s, transform 0.18s, box-shadow 0.16s;
  cursor: pointer;
  letter-spacing: 0.07em;
  margin-top: 6px;
  display: inline-block;
}
.cta-button:hover, .download-button:hover, .cta-button:focus, .download-button:focus {
  background: #13436D;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(19,67,109,0.13);
  outline: none;
}
.download-button {
  background: #13436D;
  color: #fff;
}
.download-button:hover, .download-button:focus {
  background: #39A845;
}

/* Form Elements */
input[type="text"], input[type="email"], textarea {
  border: 2px solid #C4DAEA;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  width: 100%;
  margin-top: 8px;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #13436D;
  outline: none;
}
label {
  font-weight: 500;
}

/* Filter-categories and Category-filter bar */
.filter-categories, .category-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0 10px 0;
  font-family: 'Montserrat', Arial, sans-serif;
}
.filter-categories a, .category-filter a {
  background: #E6F2EA;
  color: #13436D;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 16px;
  transition: background 0.17s, color 0.13s;
  margin-right: 2px;
  margin-bottom: 4px;
  border: 2px solid #39A845;
  font-size: 1rem;
}
.filter-categories a:hover, .category-filter a:hover {
  background: #39A845;
  color: #fff;
}

/* Search field */
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.search-field input {
  max-width: 210px;
}

/* Contact Details List */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 18px;
}
.contact-details img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}
.contact-details a {
  color: #13436D;
}

/* Trust badges (About page) */
.trust-badges {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.trust-badges img {
  width: 48px;
  height: 48px;
}

/* Footer */
footer {
  width: 100%;
  background: #13436D;
  color: #fff;
  margin-top: 48px;
  padding: 40px 0 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}
footer nav a {
  color: #fff;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.16s, color 0.12s;
}
footer nav a:hover, footer nav a:focus {
  background: #39A845;
  color: #fff;
}
.footer-contact {
  text-align: center;
  font-size: 0.98rem;
  color: #C4DAEA;
  line-height: 1.6;
}
.footer-contact a {
  color: #39A845;
  font-weight: 600;
}

/* Header */
header {
  width: 100%;
  background: #fff;
  padding: 18px 0;
  box-shadow: 0 2px 12px 0 rgba(19,67,109,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 10;
}
header > a > img {
  height: 42px;
  margin-left: 12px;
}
header nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #13436D;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 4px 12px;
  border-radius: 10px;
  transition: background 0.16s;
}
header nav a:hover, header nav a:focus {
  background: #F3F7FA;
  color: #39A845;
}
header .cta-button {
  margin-left: 14px;
  margin-right: 10px;
  padding: 10px 24px;
  font-size: 1rem;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 24px;
  right: 22px;
  z-index: 90;
  background: #39A845;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #13436D;
  color: #fff;
  outline: none;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1000;
  padding-top: 30px;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: -7px 0 44px 0 rgba(19,67,109,0.16);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #39A845;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2.1rem;
  width: 48px;
  height: 48px;
  align-self: flex-end;
  margin-right: 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #13436D;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 32px 0 0 24px;
}
.mobile-nav a {
  color: #13436D;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 12px 0;
  border-radius: 8px;
  transition: background 0.15s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E6F2EA;
  color: #39A845;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  width: 100%;
  background: #13436D;
  color: #fff;
  padding: 22px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  box-shadow: 0 -3px 18px 0 rgba(19,67,109,.05);
  animation: slideUpBanner 0.44s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideUpBanner {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: #fff;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 7px;
}
.cookie-btn-row {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 2px;
}
.cookie-btn, .cookie-settings-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.13s;
}
.cookie-btn.accept {
  background: #39A845;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #13436D;
  border: 2px solid #39A845;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #2A7130;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFE6E6;
}
.cookie-settings-btn {
  background: #F3F7FA;
  color: #13436D;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #e1f6e0;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(19,67,109,.36);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s;
}
@keyframes modalFadeIn { from { opacity:0; } to { opacity:1; } }
.cookie-modal {
  background: #fff;
  border-radius: 20px 4px 20px 4px;
  padding: 34px 26px 20px 26px;
  width: 98%;
  max-width: 420px;
  box-shadow: 0 8px 44px 0 rgba(19,67,109,0.16);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalRise 0.32s cubic-bezier(0.4,0,0.2,1);
}
@keyframes modalRise {
  from { transform: translateY(60px); opacity:.2; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: #13436D;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  margin: 12px 0;
}
.cookie-modal .cookie-category span {
  font-size: 1rem;
  color: #13436D;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 40px; height: 22px;
  background: #E6F2EA;
  border-radius: 11px;
  position: relative;
  outline: none;
  transition: background 0.15s;
  cursor: pointer;
}
.cookie-modal .cookie-toggle:checked {
  background: #39A845;
}
.cookie-modal .cookie-toggle:before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.15s;
}
.cookie-modal .cookie-toggle:checked:before {
  left: 20px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive ------------------------------------- */
@media (max-width: 1050px) {
  .card-container, .card-grid, .feature_grid, .service_list,
  .posts-grid, .resource-list, .recent-posts-grid, .testimonial-grid, .tips-grid {
    gap: 16px;
  }
  .feature_grid li, .service_list li {
    min-width: 170px;
    max-width: 100%;
  }
  .tips-grid > div, .resource-list > .resource-item, .recent-posts-grid > article, .posts-grid > article {
    min-width: 190px;
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  header, .footer-contact, footer nav, .content-wrapper, .testimonial-grid, .card-container {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: flex-start !important;
  }
  .feature_grid, .service_list, .recent-posts-grid, .posts-grid, .resource-list, .testimonial-grid, .tips-grid {
    gap: 12px !important;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .section {
    margin-bottom: 38px;
    padding: 24px 6px;
  }
  .container {
    padding: 0 5px;
  }
  header {
    flex-direction: row;
    gap: 10px;
    padding: 14px 0;
  }
  header nav {
    display: none;
  }
  header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .content-wrapper {
    gap: 16px;
  }
  .feature_grid, .service_list, .recent-posts-grid, .posts-grid, .resource-list, .testimonial-grid, .tips-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .feature_grid li, .service_list li, .tips-grid > div, .resource-list > .resource-item, .testimonial-card, .recent-posts-grid > article, .posts-grid > article {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .testimonial-slider, .testimonial-grid {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .team-bio-list {
    gap: 10px;
  }
  footer {
    padding: 22px 0 16px 0;
    gap: 8px;
  }
  footer nav {
    gap: 10px;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
  }
  .footer-contact {
    font-size: 0.94rem;
  }
}
@media (max-width: 420px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }
  .testimonial-card { font-size: 0.98rem; }
}

/* Micro-interactions and transitions */
.card, .testimonial-card, .tips-grid > div, .resource-item {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .testimonial-card:hover, .tips-grid > div:hover, .resource-item:hover {
  box-shadow: 0 8px 32px 0 rgba(56,168,69,0.13);
  transform: translateY(-3px) scale(1.017);
  z-index: 3;
}

/* Utilities */
.mt-16 { margin-top: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.d-flex { display: flex !important; }
.align-center { align-items: center !important; }

/* Hide scroll on mobile menu when open */
body.menu-open {
  overflow: hidden;
}

/* Accessibility focus ring */
a:focus, .cta-button:focus, .download-button:focus, .cookie-btn:focus, .cookie-settings-btn:focus, .mobile-menu-close:focus, .mobile-menu-toggle:focus {
  outline: 2.5px solid #39A845;
  outline-offset: 2px;
}

/* Geometric accents (Angular corners) */
.card, .testimonial-card, .section, .cookie-modal {
  /* achieved via border-radius pattern above */
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 9px; background: #F3F7FA; }
::-webkit-scrollbar-thumb { background: #C4DAEA; border-radius: 8px; }

/* Star rating color fix for color contrast */
.star-rating {
  color: #39A845;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14em;
}

/* Ensure proper spacing between all top-level cards/sections */
.card-container > *, .card-grid > *, .content-grid > *, .recent-posts-grid > *, .posts-grid > *, .tips-grid > *, .resource-list > *, .testimonial-grid > * {
  margin-bottom: 20px;
}
.section:not(:last-child) {
  margin-bottom: 60px;
}

/* End of CSS */