/* --- 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;
  font-size: 16px;
  scroll-behavior: smooth;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: #F6F8FA;
  color: #23394D;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  list-style: none;
}
a {
  color: #21406A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E67800;
  text-decoration: underline;
}

/* --- TYPOGRAPHY --- */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #21406A;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.375rem; margin-bottom: 28px; }
h2 { font-size: 1.75rem; margin-bottom: 22px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 14px; }
h4, h5, h6 { font-weight: 600; }
p, ul, ol, li { font-size: 1rem; margin-bottom: 12px; color: #23394D;}
strong { font-weight: 700; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px 0 rgba(33,64,106,0.08);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* --- HEADER --- */
header {
  background: #21406A;
  color: #fff;
  padding: 0;
  border-bottom: 3px solid #E3EEF6;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 20;
}
header > img {
  max-height: 54px;
  padding: 18px 0 7px 0;
  margin-left: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E3EEF6;
  color: #21406A;
}

.main-nav .primary,
.main-nav .cta.primary {
  background: #E67800;
  color: #fff;
  margin-left: 10px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}
.main-nav .primary:hover,
.main-nav .cta.primary:hover, 
.main-nav .primary:focus,
.main-nav .cta.primary:focus {
  background: #FA8C16;
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  cursor: pointer;
  padding: 7px 14px;
  margin-left: auto;
  z-index: 99;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  color: #FA8C16;
  outline: none;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #21406A;
  box-shadow: 0 5px 24px 0 rgba(0,0,0,0.16);
  z-index: 500;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.48,.08,.52,1);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin: 24px 18px 0 0;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FA8C16;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 38px 0 0 0;
  padding-left: 28px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 10px 0;
  transition: color .18s;
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #E67800;
}

/* Hamburger visible, nav hidden on mobile */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 18px;
    right: 16px;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* --- HERO / LANDING --- */
.hero {
  background: linear-gradient(90deg, #E3EEF6 55%, #fff 100%);
  border-radius: 0 0 22px 22px;
  padding: 44px 0 36px 0;
  margin-bottom: 50px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 645px;
}
.hero h1 {
  font-size: 2.22rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: #21406A;
}
.hero p {
  font-size: 1.22rem;
  color: #23394D;
  margin-bottom: 24px;
}

/* --- CTA BUTTONS --- */
.cta, .cta.primary {
  display: inline-block;
  background: #21406A;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  margin-top: 10px;
  box-shadow: 0 2px 6px 0 rgba(20,64,106,0.09);
  cursor: pointer;
  text-decoration: none;
  transition: background .22s, color .22s, box-shadow .2s;
  outline: none;
}
.cta.primary {
  background: #E67800;
  color: #fff;
}
.cta.primary:hover, .cta.primary:focus {
  background: #FA8C16;
  color: #fff;
}
.cta:hover, .cta:focus {
  background: #23394D;
  color: #fff;
  box-shadow: 0 4px 12px 0 rgba(33,64,106,0.17);
}

/* --- FLEXBOX LAYOUTS --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-item {
  background: #E3EEF6;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(33,64,106,0.07);
  padding: 30px 20px 24px 20px;
  flex: 1 1 220px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow .15s, transform .19s;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 4px 18px 0 rgba(33,64,106,0.19);
  transform: translateY(-4px) scale(1.015);
}
.feature-item img {
  width: 42px;
  height: 42px;
}
.feature-item h3 {
  font-size: 1.18rem;
  margin: 0;
  color: #21406A;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  box-shadow: 0 2px 10px rgba(33,64,106,0.07);
  border-radius: 11px;
  padding: 24px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .16s, transform .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(33,64,106,0.13);
  transform: translateY(-4px) scale(1.012);
}

.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;
}

/* --- NEWS/PREVIEW LISTS --- */
.news-list-preview, .article-list, .announcements-grid, .community-stories-grid, .events-calendar, .plan-options-grid, .faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-list-preview article, .article-list article, .announcement-item, .community-story, .event-item, .plan-option {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px 0 rgba(33,64,106,0.07);
  padding: 22px 16px 16px 16px;
  min-width: 0;
  transition: box-shadow .13s, transform .15s;
}
.news-list-preview article:hover, .article-list article:hover, .announcement-item:hover, .community-story:hover, .event-item:hover, .plan-option:hover {
  box-shadow: 0 3px 18px 0 rgba(33,64,106,0.15);
  transform: translateY(-2px) scale(1.01);
}

.category-label {
  display: inline-block;
  background: #E3EEF6;
  color: #21406A;
  font-size: 0.92em;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 14px;
  margin-bottom: 9px;
}

.pagination {
  display: flex;
  gap: 16px;
  margin: 28px 0 10px 0;
  align-items: center;
  justify-content: flex-start;
}
.pagination a {
  color: #21406A;
  padding: 6px 13px;
  background: #E3EEF6;
  border-radius: 5px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.pagination a:hover,
.pagination a:focus {
  background: #E67800;
  color: #fff;
}

/* --- TESTIMONIAL CARD --- */
.testimonial-section {
  background: #E3EEF6;
  border-radius: 20px;
  margin-bottom: 60px;
  padding: 42px 0 30px 0;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 1px 10px 0 rgba(33,64,106,0.10);
  margin-top: 20px;
  margin-bottom: 22px;
  transition: box-shadow .15s;
}
.testimonial-card blockquote {
  font-size: 1.15rem;
  line-height: 1.5;
  color: #21406A;
  margin: 0 0 0 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  quotes: '“' '”';
}
.testimonial-card blockquote:before {
  content: open-quote;
  color: #E67800;
  font-size: 2rem;
  vertical-align: -12px;
}
.testimonial-info {
  font-size: 0.93rem;
  color: #23394D;
  font-style: italic;
}

/* --- FOOTER --- */
footer {
  background: #21406A;
  color: #fff;
  padding: 42px 0 30px 0;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  align-items: stretch;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
}
.footer-branding img {
  max-width: 42px;
  margin-right: 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 0 0;
}
.footer-links a {
  color: #E3EEF6;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s;
  padding: 4px 6px;
  border-radius: 3px;
}
.footer-links a:hover, .footer-links a:focus {
  color: #E67800;
}
.footer-contact {
  margin-top: 12px;
  font-size: 0.97rem;
}
.footer-contact img {
  width: 18px;
  margin-right: 7px;
  vertical-align: middle;
}

/* --- NEWSLETTER SIGNUP --- */
.newsletter-signup {
  background: #E3EEF6;
  border-radius: 20px;
  padding: 36px 0 28px 0;
  margin-bottom: 60px;
  text-align: center;
}
.newsletter-signup h2 {
  color: #21406A;
  margin-bottom: 14px;
}
.newsletter-signup p {
  max-width: 540px;
  margin: 0 auto 13px auto;
}
.privacy-note, .newsletter-signup .privacy-note {
  font-size: 0.92rem;
  color: #23394D;
  margin-top: 10px;
}
.privacy-note a {
  color: #E67800;
  text-decoration: underline;
}

/* --- LEGAL TEXT BLOCKS --- */
.legal-text-block {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(33,64,106,0.06);
  margin-bottom: 42px;
  padding: 38px 24px 34px 24px;
}
.legal-text-block ul, .legal-text-block ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal-text-block li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #23394D;
}

/* --- COMMUNITY & EVENTS GRIDS --- */
.community-stories-grid, .events-calendar, .announcements-grid, .plan-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.community-story, .event-item, .announcement-item, .plan-option {
  flex: 1 1 295px;
  min-width: 230px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 9px;
  padding: 19px 18px 13px 18px;
  box-shadow: 0 1px 7px 0 rgba(33,64,106,0.09);
}

.citizen-journalism-invite {
  background: #E3EEF6;
  border-radius: 10px;
  padding: 18px;
  margin-top: 24px;
  text-align: center;
  font-weight: 600;
}

.category-filter {
  margin: 11px 0 13px 0;
  display: flex;
  gap: 12px;
}
.category-filter a {
  color: #21406A;
  background: #E3EEF6;
  padding: 5px 14px;
  border-radius: 5px;
  transition: background .18s, color .17s;
}
.category-filter a:hover, .category-filter a:focus {
  color: #fff;
  background: #E67800;
}

/* --- PLAN OPTIONS --- */
.plan-options-grid {
  gap: 32px;
  margin: 23px 0 31px 0;
}
.plan-option {
  background: #E3EEF6;
  border-radius: 11px;
  box-shadow: 0 1px 10px 0 rgba(33,64,106,0.09);
  padding: 28px 16px 23px 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  font-size: 1.01rem;
}
.plan-option h3 {
  color: #21406A;
  font-size: 1.16rem;
  margin-bottom: 5px;
}
.plan-option ul {
  margin-top: 6px;
  padding-left: 18px;
  color: #23394D;
  font-size: 0.98rem;
}

/* --- FAQ --- */
.faq-list {
  gap: 18px;
}
.faq-list h3 {
  font-size: 1.09rem;
  color: #21406A;
}
.faq-list p {
  margin-bottom: 8px;
  color: #23394D;
}

/* --- AUTHOR BIO --- */
.featured-author {
  margin-bottom: 40px;
}
.author-bio {
  background: #E3EEF6;
  border-radius: 9px;
  padding: 16px 12px;
  font-size: 1.01rem;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  color: #23394D;
}

/* --- MAP AND CONTACT --- */
.contact-details, .footer-contact {
  font-size: 1rem;
  margin-bottom: 14px;
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.contact-details img, .footer-contact img {
  width: 22px;
  margin-right: 8px;
  vertical-align: middle;
}

/* --- RESPONSIVE RULES --- */
@media (max-width: 1100px) {
  .features-grid,.community-stories-grid,.events-calendar,.announcements-grid,.plan-options-grid{gap:14px;}
}
@media (max-width: 900px) {
  .container {padding: 0 8px;}
  .testimonial-card {flex-direction: column; align-items: flex-start; gap: 10px;}
  .footer-links {gap:10px;}
  .features-grid, .community-stories-grid, .events-calendar, .announcements-grid, .plan-options-grid {gap:9px;}
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 34px;
    padding: 22px 5px;
  }
  .content-wrapper {gap:10px;}
  .hero {padding: 18px 0 12px 0;}
  .features-grid,.community-stories-grid,.events-calendar,.announcements-grid,.plan-options-grid {
    flex-direction: column;
    gap: 9px;
  }
  .testimonial-card {
    padding:16px 7px; 
    font-size:0.99em;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap:10px;
  }
}
@media (max-width: 600px) {
  h1 {font-size:1.45rem;}
  h2 {font-size:1.18rem;}
  header > img {max-height: 38px;}
}
@media (max-width: 480px) {
  .footer-branding{font-size:0.97em;}
  .footer-links{gap:6px;font-size:0.97em;}
  .testimonial-section, .newsletter-signup {padding: 14px 0 4px 0;}
  .legal-text-block {padding: 19px 7px 15px 7px;}
}

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
html, body, .cta, .feature-item, .card, .plan-option, .testimonial-card {
  transition: background 0.19s, box-shadow 0.16s, color 0.18s;
}

a:active {
  outline: none;
  box-shadow: none;
}
::-webkit-input-placeholder { color: #23394D; opacity: 0.7; }
::-moz-placeholder { color: #23394D; opacity: 0.7; }
:-ms-input-placeholder { color: #23394D; opacity: 0.7; }
::placeholder { color: #23394D; opacity: 0.7; }


/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #21406A;
  color: #fff;
  width: 100vw;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  box-shadow: 0 -1px 12px 0 rgba(20,64,106,0.12);
  z-index: 3000;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform .33s cubic-bezier(.42,.07,.5,1), opacity .21s;
}
.cookie-banner.closed {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 auto;
  max-width: 480px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 7px;
  padding: 7px 16px;
  cursor: pointer;
  margin: 0 2px;
  box-shadow: 0 1px 2px rgba(33,64,106,0.09);
  transition: background .14s, color .15s, box-shadow .13s;
  font-weight: 600;
}
.cookie-btn.accept {
  background: #E67800;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #FA8C16;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #21406A;
  border: 1px solid #E3EEF6;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #23394D;
  color: #fff;
}
.cookie-btn.settings {
  background: #E3EEF6;
  color: #21406A;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #E67800;
  color: #fff;
}

@media (max-width: 670px) {
  .cookie-banner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 8px 9px 8px;
    font-size: 0.92em;
  }
  .cookie-banner .cookie-actions{gap:8px;}
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left:0; top:0;
  z-index:3200;
  width:100vw; height:100vh;
  background: rgba(33,64,106,0.26);
  backdrop-filter: blur(1.5px);
  opacity: 1;
  transition: opacity .21s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 420px;
  width: 96vw;
  padding: 32px 20px 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(33,64,106,0.20);
}
.cookie-modal h3 {
  color: #21406A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.17rem;
  margin-bottom: 16px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  padding: 9px 0;
  border-bottom: 1px solid #E3EEF6;
}
.cookie-modal-category:last-child {border-bottom:none;}
.cookie-modal-label {
  font-size:1rem;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  color: #23394D;
}
.cookie-toggle {
  width: 36px; height: 20px;
  background: #E3EEF6;
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background .13s;
  margin-left: 8px;
}
.cookie-toggle[aria-checked="true"] {
  background: #E67800;
}
.cookie-toggle-thumb {
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left .19s;
  box-shadow: 0 1px 3px rgba(33,64,106,0.09);
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-thumb {
  left: 19px;
}
.cookie-toggle[disabled], .cookie-toggle[aria-disabled="true"]{
  opacity:0.40; pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 24px;
}
.cookie-modal .cookie-btn {
  font-size: 1rem;
  min-width: 100px;
}

@media (max-width:642px) {
  .cookie-modal {
    max-width:95vw;
    padding:18px 7px 14px 7px;
  }
  .cookie-modal-actions {gap: 7px;}
}

/* --- END --- */

