/* CSS RESET & BASE TYPOGRAPHY - Minimalist, accessible, clean */
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FAFAFA;
  color: #232F34;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
}
img {
  max-width: 100%; height: auto; display: block;
}
ul, ol { list-style: none; }
a {
  text-decoration: none;
  color: #232F34;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #F9AA33;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, 'Times New Roman', Times, serif;
  color: #232F34;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 1.8rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
p, ul, ol { 
  font-size: 1rem;
  margin-bottom: 12px;
  color: #232F34;
}
strong { font-weight: 600; }

/* BRAND COLORS (fallbacks included) */
:root {
  --primary: #232F34;
  --secondary: #4A6572;
  --accent: #F9AA33;
  --light-bg: #FAFAFA;
  --card-bg: #FFFFFF;
  --card-shadow: 0 2px 12px rgba(34,47,52,.05);
  --border-radius: 12px;
}

/* CONTAINER SYSTEMS */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--light-bg);
}
@media (min-width: 769px) {
  .section { padding: 60px 0; }
}

/* NAVIGATION & HEADER */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(34,47,52,.03);
}
.main-navigation {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  justify-content: flex-start;
}
.main-navigation > a {
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: var(--border-radius);
  transition: background 0.18s, color 0.18s;
  color: var(--primary);
  font-weight: 500;
}
.main-navigation > a:hover, .main-navigation > a:focus {
  background: #F6F6F6;
  color: var(--accent);
}
.main-navigation > a.cta.primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-left: auto;
  transition: background 0.22s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(34,47,52,.08);
}
.main-navigation > a.cta.primary:hover, .main-navigation > a.cta.primary:focus {
  background: #ffd782;
  color: var(--primary);
}
.main-navigation img {
  height: 36px;
  margin-right: 20px;
  vertical-align: middle;
  display: inline-block;
}

/* MOBILE MENU HAMBURGER */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  margin-left: auto;
  transition: background 0.2s;
  z-index: 11;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F6F6F6;
  outline: none;
}

@media (min-width: 993px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(34, 47, 52, 0.98);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform .36s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 8px 30px rgba(34,47,52,.11);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #fff;
  padding: 18px 22px 6px 22px;
  margin-bottom: 10px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10000;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 26px 28px 24px 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.24rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 0 10px 0;
  border-bottom: 1px solid rgba(250, 250, 250, .10);
  transition: color 0.19s, background 0.18s;
}
.mobile-nav a:last-child {
  border: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: rgba(255,255,255,0.04);
}

@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .main-navigation {
    display: none;
  }
  .mobile-menu {
    display: flex;
  }
}

/* SECTIONS & FLEX LAYOUTS */
.section:not(:last-child) {
  border-bottom: 1px solid #E5E5E5;
}
.features-grid, .articles-list, .articles-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid, .articles-list, .articles-preview {
  justify-content: flex-start;
  align-items: flex-start;
}
.feature {
  flex: 1 1 250px; 
  min-width: 230px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  background: var(--card-bg);
  padding: 28px 24px 24px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  transition: box-shadow 0.21s;
}
.feature img {
  height: 40px; width: 40px; object-fit: contain; margin-bottom: 10px;
  filter: grayscale(0.20) contrast(1.03);
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 18px rgba(34,47,52,.10);
}
@media (max-width: 768px) {
  .features-grid, .articles-list, .articles-preview {
    flex-direction: column;
    gap: 20px;
  }
  .feature {
    max-width: 100%;
  }
}

.article-card {
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  border-radius: var(--border-radius);
  padding: 22px 22px 18px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-width: 0;
}
.article-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.article-card .category {
  color: var(--secondary);
  font-size: 0.92rem;
  margin-bottom: 6px;
  font-weight: 500;
}
.article-card a {
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
  transition: color 0.16s;
  align-self: flex-start;
}
.article-card a:hover, .article-card a:focus {
  color: var(--primary);
  text-decoration: underline;
}
.article-card:hover, .article-card:focus-within {
  box-shadow: 0 6px 26px rgba(34,47,52,.10);
}

@media (max-width: 768px) {
  .article-card {
    padding: 18px 14px 16px 14px;
  }
}

/* TEXT-IMAGE & FLEXIBLE SECTION LAYOUTS */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  position: relative;
  padding: 20px 20px 20px 20px;
  flex: 1 1 250px;
  min-width: 200px;
  transition: box-shadow 0.19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 22px rgba(34,47,52,.09);
}

/* Testimonials (clear contrast) */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #232F34;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 8px rgba(34,47,52,.09);
  padding: 20px;
  min-width: 0;
  margin-bottom: 20px;
  transition: box-shadow 0.19s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 24px rgba(73,101,114,.10);
}
.testimonial-card p {
  font-size: 1rem;
  color: #232F34;
  margin-bottom: 0;
  flex: 1 1 0%;
  font-style: italic;
}
.testimonial-card span {
  color: var(--secondary);
  font-size: 0.98rem;
  font-weight: 500;
  margin-left: 16px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 12px;
  }
  .testimonial-card span { margin-left: 0; font-size: 0.95rem; }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 20px;
}

/* Filter nav for article pages */
.filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
}
.filter-nav a {
  font-size: 1rem;
  color: var(--secondary);
  padding: 7px 18px;
  border-radius: 22px;
  background: #F6F6F6;
  transition: background 0.16s, color 0.16s;
  font-weight: 500;
}
.filter-nav a:hover, .filter-nav a:focus {
  background: var(--accent);
  color: #fff;
}

/* Feature Items */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #232F34;
  padding: 22px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 24px rgba(34,47,52,0.09);
  z-index: 22222;
  gap: 18px;
  border-top: 1px solid #efefef;
  animation: slideUpCookie 0.48s cubic-bezier(.38,1.3,.52,.99);
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 0;
  font-size: 1rem;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  background: #F6F6F6;
  color: var(--primary);
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.16s;
  margin-top: 0;
}
.cookie-btn.primary {
  background: var(--accent);
  color: #fff;
}
.cookie-btn.primary:hover, .cookie-btn.primary:focus {
  background: #ffd782;
  color: var(--primary);
}
.cookie-btn.reject {
  background: #F6F6F6;
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #232F34;
  color: #fff;
}
.cookie-btn.settings {
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F9AA33;
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34, 47, 52, .42);
  z-index: 22333;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: fadeinModal 0.28s;
}
@keyframes fadeinModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #232F34;
  border-radius: 15px;
  padding: 34px 30px 26px 30px;
  min-width: 320px; max-width: 96vw;
  box-shadow: 0 8px 32px rgba(34,47,52,.13);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  font-size: 1rem;
  animation: popUpModal .38s cubic-bezier(.36,1.3,.58,0.9);
}
@keyframes popUpModal {
  0% { transform: scale(.91); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-close-modal {
  position: absolute;
  top: 18px;
  right: 14px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #232F34;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-close-modal:hover, .cookie-close-modal:focus {
  color: var(--accent);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--accent);
  width: 20px; height: 20px;
  margin: 0 10px 0 0;
}
.essential-cookies-label {
  color: var(--secondary);
  font-size: 0.98rem;
}


@media (max-width: 600px) {
  .cookie-modal-content {
    padding: 24px 8vw 20px 8vw;
    min-width: 0;
  }
}

/* BUTTONS */
.cta, .cookie-btn, button, input[type=submit] {
  font-family: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(249,170,51,0.07);
  transition: background 0.16s, color 0.15s, box-shadow 0.11s;
}
.cta.primary:hover, .cta.primary:focus, .cookie-btn.primary:hover, .cookie-btn.primary:focus {
  background: #ffd782;
  color: var(--primary);
  box-shadow: 0 8px 34px rgba(249,170,51,0.10);
}
.cta {
  display: inline-block;
  margin-top: 18px;
}
@media (max-width: 480px) {
  .cta, .cookie-btn, button, input[type=submit] {
    padding: 10px 16px;
    font-size: 1rem;
  }
}

/* FORMS (if forms appear) */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 7px;
  border: 1px solid #E0E0E0;
  background: #FAFAFA;
  color: #232F34;
  padding: 10px 12px;
  margin-bottom: 14px;
  transition: border 0.17s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 1rem; }

/* FOOTER */
footer {
  background: #fff;
  color: var(--primary);
  border-top: 1px solid #E4E7EA;
  padding: 38px 0 24px 0;
  font-size: 0.93rem;
  margin-top: 40px;
  box-shadow: 0 -1px 12px rgba(34,47,52,.04);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--secondary);
  font-weight: 500;
  padding: 4px 10px;
  transition: color 0.16s;
  border-radius: 6px;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
  background: #f6f6f6;
}
footer address {
  font-style: normal;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #232F34;
  opacity: .92;
  font-size: 0.95rem;
}
footer address img {
  width: 18px; height: 18px; margin-right: 2px; vertical-align: middle;
}
footer p {
  margin-top: 10px;
  font-size: 0.93rem;
  color: #4A6572;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .container { padding: 0 6vw; }
  .main-navigation, footer nav { gap: 12px; }
  .section { padding: 30px 2vw; }
  .feature, .article-card, .testimonial-card {
    padding-left: 10px; padding-right: 10px;
  }
}

/* MICRO-INTERACTION (for cards, buttons) */
.card, .feature, .article-card, .testimonial-card {
  transition: box-shadow 0.23s cubic-bezier(.36,1.37,.79,0.07), transform 0.19s;
}
.card:hover, .feature:hover, .article-card:hover, .testimonial-card:hover {
  transform: translateY(-4px) scale(1.02);
}
.cta.primary:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* GENERAL UTILITIES & SPACING */
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.pt-32 { padding-top: 32px; }
.pb-32 { padding-bottom: 32px; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* ALIGNMENT FOR FLEXBOX LAYOUTS */
.align-center { align-items: center; justify-content: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

/* HIDING ELEMENTS ACCESSIBLY */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Hide scrollbar in modals */
.cookie-modal-content::-webkit-scrollbar { display: none; }

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