/* ==== CSS RESET & NORMALIZATION ==== */
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;
}
html { box-sizing: border-box; scroll-behavior: smooth; }
ul, ol { list-style: none; }
img, picture { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: 100%; border: none; outline: none; background: none; }
table { border-collapse: collapse; border-spacing: 0; }


/* ==== CUSTOM PROPERTIES (FALLBACKS INCLUDED) ==== */
:root {
  --primary: #315072;
  --secondary: #E6A560;
  --accent: #FDF6EF;
  --heading-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
  --text-main: #222C36;
  --text-muted: #657188;
  --white: #fff;
  --shadow-card: 0 4px 18px rgba(49,80,114,0.07), 0 1.5px 4px rgba(49,80,114,0.10);
  --radius-card: 18px;
  --radius-btn: 8px;
  --radius-input: 6px;
  --transition-fast: 0.18s cubic-bezier(.61,.33,.36,.88);
}
body {
  background: var(--accent, #FDF6EF);
  color: var(--text-main, #222C36);
  font-family: var(--body-font, 'Roboto', Arial, sans-serif);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ==== TYPOGRAPHY SCALE ==== */
h1, .h1 {
  font-family: var(--heading-font, 'Montserrat', Arial, sans-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.13;
}
h2, .h2 {
  font-family: var(--heading-font, 'Montserrat', Arial, sans-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.18;
}
h3, .h3 {
  font-family: var(--heading-font, 'Montserrat', Arial, sans-serif);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}
h4, .h4 {
  font-size: 1.13rem;
  font-weight: 600;
  margin-bottom: 8px;
}
p, ul, ol, li, table, address {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 14px;
}
ul, ol {
  margin-bottom: 18px;
}
strong, b {
  font-weight: bold;
}
a {
  transition: color var(--transition-fast);
  color: var(--primary);
}
a:hover, a:focus {
  color: var(--secondary);
  text-decoration: underline;
}

/* ==== SPACING & LAYOUT CONTAINERS ==== */
.container {
  width: 100%;
  max-width: 1180px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}

/* === FLEXBOX LAYOUTS (MANDATORY) === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 20px;
  flex: 1 1 285px;
  min-width: 220px;
  max-width: 350px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.card:hover, .card:focus-within {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 8px 32px rgba(49,80,114,0.16), 0 4px 12px rgba(49,80,114,0.11);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 0;
  flex: 1 1 300px;
  color: #212B37;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}
.article-teaser-list, .article-previews, .article-previews-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.article-teaser-list article, .article-previews article, .article-previews-grid article {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 18px;
  min-width: 230px;
  flex: 1 1 220px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.article-previews article:hover, .article-teaser-list article:hover, .article-previews-grid article:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 32px rgba(49,80,114,0.14);
}

/* ==== HERO SECTION & GRADIENTS ==== */
section:first-of-type, .hero, .hero-section {
  background: linear-gradient(120deg, var(--primary), var(--secondary) 75%, var(--accent) 100%);
  color: var(--white);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  box-shadow: 0 12px 48px 0 rgba(49,80,114,0.07);
  padding-bottom: 44px;
}
section:first-of-type .content-wrapper > h1, section:first-of-type .content-wrapper > p,
.hero-section .content-wrapper > h1, .hero-section .content-wrapper > p {
  color: var(--white);
}
section:first-of-type .btn-primary, .hero-section .btn-primary {
  background: var(--secondary);
  color: var(--primary);
}

/* ==== NAVIGATION & HEADER ==== */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 16px 0 rgba(49,80,114,0.04);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  padding: 14px 20px 14px 20px;
  gap: 0;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: var(--heading-font);
  letter-spacing: 0.02em;
  padding: 7px 0 7px 0;
  font-weight: 500;
  color: var(--primary);
  transition: color var(--transition-fast) 0s;
  font-size: 1rem;
}
nav a:hover, nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.btn-primary,
.btn-secondary,
button.btn-primary,
button.btn-secondary {
  display: inline-block;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 12px 28px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  margin-top: 10px;
  box-shadow: 0 2px 10px 0 rgba(49,80,114,0.07);
}
.btn-primary, button.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover, .btn-primary:focus, button.btn-primary:hover, button.btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
}
.btn-secondary, button.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
}
.btn-secondary:hover, .btn-secondary:focus, button.btn-secondary:hover, button.btn-secondary:focus {
  background: var(--primary);
  color: var(--white);
}

/* ==== FOOTER ==== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0 24px 0;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  box-shadow: 0 -2px 36px 0 rgba(49,80,114,0.08);
  font-size: 1rem;
  margin-top: 12px;
}
footer .container {
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--heading-font);
  font-size: 1.12rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 5px;
}
.footer-nav a {
  color: var(--secondary);
  font-weight: 500;
  font-size: 1rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--white);
  text-decoration: underline;
}
.newsletter-signup form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.newsletter-signup input[type=email] {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  border: 1.5px solid var(--secondary);
  font-size: 1rem;
  width: 200px;
}
.newsletter-signup button, .newsletter-signup input[type=submit] {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--heading-font);
  padding: 10px 20px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 10px 0 rgba(49,80,114,0.06);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.newsletter-signup button:hover, .newsletter-signup button:focus, .newsletter-signup input[type=submit]:hover {
  background: var(--primary);
  color: var(--white);
}

/* ==== TABLES (e.g. behawioryzm) ==== */
table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin: 12px 0 24px 0;
  overflow: hidden;
}
table th {
  background: var(--primary);
  color: var(--white);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 14px 12px;
  text-align: left;
}
table td {
  padding: 13px 12px;
  border-bottom: 1px solid #ececec;
  color: var(--text-main);
}
table tr:last-child td { border-bottom: none; }

/* ==== FORMS ==== */
label {
  font-size: 1rem;
  font-family: var(--body-font);
  color: var(--primary);
  margin-bottom: 4px;
  display: block;
}
input, select, textarea {
  border-radius: var(--radius-input);
  background: var(--white);
  border: 1px solid #d5dfe4;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 1rem;
  transition: border var(--transition-fast);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--secondary);
  outline: none;
}

/* ==== ICONS IN LISTS ==== */
ul li img {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 13px;
}
ul li {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
}

/* ==== ADDRESS ==== */
address {
  font-style: normal;
  color: var(--primary);
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  font-size: 1rem;
  margin-bottom: 22px;
  line-height: 1.63;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
address img {
  margin-right: 9px;
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -2px 30px 0 rgba(49,80,114,0.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: center;
  z-index: 9999;
  padding: 18px 8px 14px 8px;
  transition: transform 0.38s cubic-bezier(.74,.03,.83,1.11);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner button,
.cookie-banner .cookie-btn {
  margin-left: 8px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-btn);
  padding: 8px 20px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--heading-font);
  font-weight: 600;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.cookie-banner .cookie-btn.secondary {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .cookie-btn.settings {
  background: #e9edf4;
  color: var(--primary);
}
.cookie-banner button:hover, .cookie-banner .cookie-btn:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44,54,72,0.37);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: opacity 0.28s;
}
.cookie-modal-content {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-card);
  padding: 30px 26px 24px 26px;
  width: 95%;
  max-width: 420px;
  box-shadow: 0 6px 48px 0 rgba(44,67,99,0.18);
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: var(--secondary);
  border-radius: 50%;
  border: none;
  color: var(--primary);
  width: 32px;
  height: 32px;
  font-size: 1.18rem;
  cursor: pointer;
  font-weight: 700;
  transition: background var(--transition-fast);
}
.cookie-modal-close:hover {
  background: var(--primary);
  color: var(--white);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.cookie-category input[type=checkbox] {
  width: 20px;
  height: 20px;
}

/* ==== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 22px;
  right: 21px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2.3rem;
  border: none;
  border-radius: 11px;
  z-index: 1050;
  box-shadow: 0 1px 12px 0 rgba(49,80,114,0.06);
  padding: 7px 15px 7px 15px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--white);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 34px;
  position: fixed;
  right: 0;
  top: 0;
  width: 97vw;
  max-width: 380px;
  height: 100vh;
  background: var(--accent);
  box-shadow: -4px 0 32px 0 rgba(49,80,114,0.18);
  z-index: 1100;
  transform: translateX(102%);
  transition: transform 0.36s cubic-bezier(.74,.03,.85,1.19);
  font-size: 1.14rem;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 2.1rem;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 16px 0 rgba(49,80,114,0.08);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 0 0 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--heading-font);
  font-size: 1.13rem;
  color: var(--primary);
  padding: 11px 0;
  border-bottom: 1px solid #e1eafd;
  width: 90%;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-btn);
}

/* ==== MEDIA QUERIES: RESPONSIVE FLEX BREAKPOINTS ==== */
@media (max-width: 1020px) {
  .container{
    max-width: 95vw;
  }
  nav{
    gap: 18px;
  }
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .card-container, .content-grid, .article-teaser-list, .article-previews, .article-previews-grid {
    gap: 12px;
  }
  .footer-branding, .footer-nav {
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  section, .section {
    margin-bottom: 40px;
    padding: 26px 0;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .card, .article-teaser-list article, .article-previews article, .testimonial-card {
    min-width: 140px;
    max-width: 100%;
    padding: 14px 10px;
  }
  .content-wrapper, .text-image-section {
    gap: 14px;
  }
  .article-teaser-list, .article-previews, .article-previews-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  table th, table td {
    font-size: 0.96rem;
    padding: 10px 6px;
  }
  .newsletter-signup input[type=email] {
    width: 100%;
    min-width: 110px;
  }
}
@media (max-width: 700px){
  header .container, .footer-nav,
  .footer-branding, .footer-nav, .newsletter-signup form {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  footer {
    padding: 32px 0 8px 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    font-size: 0.96rem;
  }
  .footer-branding img { width: 34px; height: 34px; }
}
/* Burger and Mobile Menu Display Logic */
@media (max-width: 980px) {
  nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 981px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/*
 * ========== COMPONENT ENHANCEMENTS ========== 
*/

/* Hero gradient headings on first section */
section:first-of-type h1, .hero-section h1 {
  background: linear-gradient(90deg, var(--white), var(--secondary) 70%, var(--white) 100%);
  background-clip: text;
  color: var(--white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.5rem;
  margin-bottom: 18px;
}

/* Smooth transitions for all major interactive items */
.btn-primary, .btn-secondary, a, .card, .article-teaser-list article,
.article-previews article, .article-previews-grid article, .mobile-menu,
.mobile-menu-toggle, .mobile-menu-close, input, select, table, .testimonial-card, .cookie-banner, .cookie-btn {
  transition: all var(--transition-fast);
}

/* Cards */
.card, .article-teaser-list article, .article-previews article, .testimonial-card {
  border: 1.5px solid #ecf1f6;
}
/* Card shadow and hover (for contemporary feel) */
.card:hover, .article-previews article:hover, .article-teaser-list article:hover, .testimonial-card:hover {
  box-shadow: 0 10px 36px 0 rgba(49,80,114,0.19);
  border-color: var(--secondary);
}

/* Testimonial accessibility */
.testimonial-card {
  background: var(--white);
  color: #212B37;
  box-shadow: 0 4px 24px 0 rgba(49,80,114,0.11);
  border-left: 7px solid var(--secondary);
  font-size: 1.1rem;
  font-style: italic;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.testimonial-card span {
  color: var(--primary);
  font-style: normal;
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 500;
  margin-top: 10px;
}

/* CTA section styling */
.btn-primary, .btn-secondary {
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px 0 rgba(49,80,114,0.07);
}

/* Responsive heading font sizes */
@media (max-width: 500px) {
  h1, .h1, section:first-of-type h1, .hero-section h1 {
    font-size: 1.38rem;
  }
  h2, .h2 {
    font-size: 1.11rem;
  }
  h3, .h3 {
    font-size: 1rem;
  }
}

/* Error/Info color classes */
.text-error { color: #b22626; }
.text-info { color: var(--secondary); }
.text-muted { color: var(--text-muted); }

/* Miscellaneous */
::-webkit-input-placeholder { color: #b2b9c9; opacity: 1; }
::-moz-placeholder { color: #b2b9c9; opacity: 1; }
:-ms-input-placeholder { color: #b2b9c9; opacity: 1; }
::placeholder { color: #b2b9c9; opacity: 1; }

/* Hide elements visually/for accessibility (cookie modal, etc) */
.hide, .hidden { display: none !important; }

/* ========== END ========== */
