/* --- CSS RESET & BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font: inherit;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F3F6FA;
  color: #17345C;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}
img, picture {
  max-width: 100%;
  display: block;
}
a {
  color: #A6261B;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #E03C31;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}

/* --- BRAND & COLOR SCHEME --- */
:root {
  --primary: #17345C;
  --secondary: #F3F6FA;
  --accent: #E03C31;
  --accent-dark: #A6261B;
  --neutral: #FFFFFF;
  --neutral-dark: #ECE7E1;
  --shadow:
    0 2px 8px rgba(230, 110, 70, 0.06),
    0 1.5px 10px rgba(23, 52, 92, 0.07);
  --radius: 18px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: var(--primary);
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}
p, li, dd {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #234;
}
strong {
  font-weight: 700;
  color: var(--accent-dark);
}

/* --- LAYOUT WRAPPERS --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--neutral);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 18px;
  margin-bottom: 30px;
}
.text-section {
  gap: 10px;
}

/* --- SECTION SPACING & FLEX MANDATORY --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(90,40, 15, 0.05);
  margin-bottom: 24px;
  color: #17345C;
  border: 1px solid #f1ece7;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HERO & CTA --- */
.cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.14rem;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 8px;
  transition: background 0.13s, transform 0.12s, box-shadow 0.17s;
  cursor: pointer;
}
.cta:hover, .cta:focus {
  background: var(--accent-dark);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 3px 16px rgba(224, 60, 49, 0.14), var(--shadow);
}

/* --- NAVBAR & HEADER --- */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(27, 30, 45, 0.06);
  width: 100%;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 41px;
  width: auto;
  border-radius: 9px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: var(--primary);
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.17s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FFE5E3;
  color: var(--accent);
}
.main-nav .cta {
  background: var(--accent);
  color: #fff;
  margin-left: 10px;
}
.main-nav .cta:hover, .main-nav .cta:focus {
  background: var(--accent-dark);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 12px;
  padding: 6px 16px;
  margin-left: 12px;
  transition: background 0.18s, transform 0.17s;
  cursor: pointer;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent-dark);
  transform: scale(1.09);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  max-width: 360px;
  background: #fff;
  box-shadow: -2px 0 20px rgba(27, 30, 45, 0.13);
  padding: 40px 24px 24px 36px;
  z-index: 120;
  transform: translateX(110%);
  transition: transform 0.38s cubic-bezier(.60,1.3,.49,.92);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.open {
  transform: translateX(0%);
  transition: transform 0.40s cubic-bezier(.61,1.4,.48,.95);
}
.mobile-menu-close {
  position: absolute;
  top: 25px;
  right: 28px;
  font-size: 2rem;
  background: var(--neutral-dark);
  color: var(--accent);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 130;
  cursor: pointer;
  transition: background 0.16s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--primary);
  padding: 14px 8px;
  border-radius: 10px;
  background: none;
  font-weight: 600;
  transition: background 0.15s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFE5E3;
  color: var(--accent);
}
.mobile-nav .cta {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 11px;
  text-align: center;
  margin-top: 8px;
}
.mobile-nav .cta:hover {
  background: var(--accent-dark);
}

/* --- SECTION: Feature List, News Cards --- */
ul li {
  position: relative;
  margin-bottom: 10px;
  font-size: 1rem;
  padding-left: 32px;
}
ul li img {
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
}

/* News teaser grid */
.news-teasers, .news-list, .event-grid, .subscription-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.news-card {
  background: var(--neutral-dark);
  border-radius: var(--radius);
  box-shadow: 0 2px 7px rgba(226, 135, 85, 0.05);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 225px;
  max-width: 340px;
  flex: 1 1 230px;
  color: #15263c;
  margin-bottom: 20px;
  border: 1px solid #F3F6FA;
  transition: box-shadow 0.17s, background 0.20s, transform 0.17s;
}
.news-card h3, .news-card h2 {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-family: 'Merriweather', serif;
  font-size: 1.18rem;
  font-weight: 700;
}
.news-card:hover {
  box-shadow: 0 5px 18px rgba(224,60,49,0.12), var(--shadow);
  background: #fff7f6;
  transform: translateY(-4px) scale(1.01);
}
.event-grid .news-card, .subscription-grid .news-card {
  background: #f9f6f2;
}
@media (max-width: 900px) {
  .news-teasers,.news-list,.event-grid,.subscription-grid {
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
  }
}

/* --- FOOTER --- */
footer {
  background: #17345C;
  color: #fff;
  padding: 40px 0 0 0;
  font-size: 1rem;
  margin-top: 60px;
  width: 100%;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  padding-bottom: 10px;
}
.footer-brand {
  flex: 2 1 210px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 5px;
}
.footer-brand span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFE5E3;
  margin-bottom: 5px;
}
.footer-brand p {
  color: #c6cfd9;
  line-height: 1.6;
}
.footer-nav {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 0 8px 0;
}
.footer-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 2px 0;
  transition: color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus{
  color: #F38F76;
}
.footer-contact {
  flex: 1 1 130px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #ffd8cc;
  font-size: 0.96rem;
}
.footer-contact img {
  height: 20px;
  width: 20px;
  margin-right: 7px;
  margin-bottom: -5px;
  display: inline;
}
.footer-legal {
  background: #112546;
  padding: 14px 0 16px 0;
  font-size: 0.93rem;
  margin-top: 4px;
  color: #f3f6fa;
  text-align: center;
  letter-spacing: .01em;
}

/* --- TESTIMONIALS --- */
.testimonial-card p {
  color: #343c46;
  font-size: 1.1rem;
  font-family: 'Open Sans', sans-serif;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-card strong {
  font-size: 0.97rem;
  font-weight: 700;
  color: #E03C31;
  margin-top: 8px;
  font-family: 'Open Sans', sans-serif;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fffdfa;
  color: #17345C;
  padding: 22px 18px 16px 18px;
  box-shadow: 0 -1.5px 10px rgba(27, 30, 45, 0.09);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  border-top: 3px solid #FFD6CB;
  animation: bannerIn 0.5s cubic-bezier(.66,1.3,.54,.98);
}
@keyframes bannerIn {
  0% { transform: translateY(80px); opacity: .30; }
  85% {transform: translateY(-4px);}
  100% {transform: translateY(0); opacity: 1;}
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-btn {
  padding: 10px 30px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-family: 'Open Sans',sans-serif;
  cursor: pointer;
  background: #ECE7E1;
  color: #17345C;
  box-shadow: 0 1px 6px rgba(154,77,60,0.04);
  margin-bottom: 5px;
  font-size: 1rem;
  transition: background 0.16s, color 0.13s;
}
.cookie-btn.accept {
  background: #E03C31;
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #A6261B;
}
.cookie-btn.settings {
  background: #FFE5E3;
  color: #E03C31;
}
.cookie-btn.reject {
  background: #fff;
  color: #A6261B;
  border: 1px solid #ffd3c5;
}
.cookie-btn.reject:hover {
  background: #fbeee9;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 4000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,52,92,0.23);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.35s cubic-bezier(.66,1.3,.54,.98);
}
.cookie-modal.open { display: flex; }
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 5px 40px rgba(190,96,34,0.08), 0 2px 20px #e8d9d0;
  max-width: 410px;
  width: 96vw;
  padding: 34px 24px 22px 24px;
  animation: slideModalIn 0.17s cubic-bezier(.51,1.11,.54,.99);
  position: relative;
  color: #122340;
  display: flex; flex-direction: column;
  gap: 15px;
}
@keyframes slideModalIn {
  from { transform: scale(0.96) translateY(32px); opacity: 0.2; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  margin-bottom: 16px;
  color: #A6261B;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.04rem;
}
.cookie-category label {
  font-weight: 600;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #f3b7b2;
  border-radius: 15px;
  position: relative;
  outline: none;
  transition: background .16s;
}
.cookie-toggle:checked {
  background: #E03C31;
}
.cookie-toggle::before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  background: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transition: transform 0.16s;
}
.cookie-toggle:checked::before {
  transform: translateX(16px);
}
.cookie-category .hint {
  font-size: .94rem;
  color: #807a85;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  background: none;
  font-size: 2rem;
  color: #bdaaaa;
  cursor: pointer;
  border-radius: 9px;
  transition: color 0.23s, background 0.18s;
}
.cookie-modal-close:hover {
  color: #E03C31;
  background: #FFE5E3;
}
.cookie-modal .modal-actions {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* --- MISCELLANEA & INTERACTIONS --- */
dt {
  font-weight: bold;
  margin-top: 14px;
  font-size: 1.07em;
  color: var(--accent);
}
dd {
  margin-bottom: 10px;
  margin-left: 0;
}

/* --- UTILITIES FOR RESPONSIVENESS --- */
@media (max-width: 900px) {
  header .container { flex-direction: row; gap: 10px; }
  .footer-contact, .footer-brand, .footer-nav { min-width: 170px; }
}

@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper, .testimonial-card, .section {
    padding: 20px 8px;
    margin-bottom: 26px;
  }
  h1 {font-size:2rem}
  h2 {font-size:1.5rem}
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .footer-nav, .footer-contact {
    margin-top: 16px;
    align-items: flex-start;
    gap: 6px;
  }
  .news-teasers, .news-list, .event-grid,.subscription-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
}
@media (max-width: 630px) {
  .container { max-width: 100vw; }
  header .container { gap: 5px; }
}
@media (max-width: 530px) {
  .content-wrapper, .testimonial-card, .section {
    padding: 13px 3px;
  }
  h1 {font-size: 1.3rem;}
  h2 {font-size: 1.1rem;}
}
@media (max-width: 420px) {
  .mobile-menu { padding-left: 9vw; padding-right: 4vw; }
  .content-wrapper, .testimonial-card, .section {
    padding-left: 2vw; padding-right: 2vw;
  }
}

/* --- SCROLLBAR STYLING for modern look --- */
::-webkit-scrollbar {
  width: 8px;
  background: #ececec;
}
::-webkit-scrollbar-thumb {
  background: #FFD6CB;
  border-radius: 8px;
}

/* --- FOCUS & ACCESSIBILITY --- */
:focus-visible {
  outline: 2px solid #E03C31;
  outline-offset: 2px;
  z-index: 9999;
}

/* --- CUSTOM HTML ELEMENTS for inclusiveness --- */
hr {
  border: 0;
  border-top: 1px solid #F3F6FA;
  margin: 20px 0;
}
/* End of CSS */
