/* ===========================
   RESET & BASE STYLES
=========================== */
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;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  background: #F6F6F2;
  color: #244875;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #244875;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F5B041;
  text-decoration: underline;
}
main {
  flex: 1 0 auto;
}

/* ===========================
   BRAND TYPOGRAPHY
=========================== */
h1, h2, h3, .cta-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}
.subheadline {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: #244875;
  opacity: .94;
}
p, ul, ol, li {
  font-size: 1rem;
  color: #244875;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/* ===========================
   LAYOUT: CONTAINERS & SPACING
=========================== */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section, .hero-section, .features-section, .about-section, .testimonials-section, .cta-section, .howitworks-section, .get-involved-section, .cookie-section, .terms-section, .gdpr-section, .privacy-section, .contact-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 32px 0 rgba(36,72,117,0.07);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-container, .feature-grid, .continent-grid, .featured-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(36,72,117,0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 24px rgba(36,72,117,0.15);
  transform: translateY(-3px) scale(1.015);
}
.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;
  background: #F6F6F2;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(36,72,117,0.04);
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
  flex-direction: column;
  color: #212733;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(36,72,117, 0.13);
}
.testimonial-card p {
  font-size: 1.08rem;
  font-style: italic;
  color: #222B3C;
}
.testimonial-details {
  font-size: 1rem;
  color: #666;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-top: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 0 auto 14px auto;
  padding: 18px 0 0 0;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 34px;
}

/* ===========================
   GRADIENT MODERN AESTHETIC
=========================== */
.hero-section {
  background: linear-gradient(90deg, #244875 0%, #F5B041 90%);
  color: #fff;
  box-shadow: 0 4px 44px 0 rgba(36,72,117,0.05);
  border-radius: 0 0 30px 30px;
  margin-bottom: 40px;
}
.hero-section h1,
.hero-section .subheadline {
  color: #fff;
}
.hero-section .cta-primary {
  background: #fff;
  color: #244875;
  border: none;
  box-shadow: 0 2px 12px rgba(36,72,117,0.08);
}
.hero-section .cta-primary:hover, .hero-section .cta-primary:focus {
  background: #F5B041;
  color: #fff;
}
.cta-section {
  background: linear-gradient(90deg,#244875 0%,#F5B041 70%);
  color: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 28px 0 rgba(36,72,117,0.07);
}
.cta-section h2, .cta-section p {
  color: #fff;
}

/* Accent blocks for gradient_modern (used in features, highlights etc.) */
.features-section, .about-section, .howitworks-section, .get-involved-section, .cookie-section, .terms-section, .gdpr-section, .privacy-section, .contact-section {
  background: #fffdf8;
}
.feature-grid > div, .continent-grid > div, .featured-articles > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(36,72,117,0.04);
  flex: 1 1 230px;
  min-width: 220px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.21s, transform 0.21s;
}
.feature-grid > div:hover, .continent-grid > div:hover, .featured-articles > div:hover {
  box-shadow: 0 8px 24px rgba(36,72,117,0.13);
  transform: translateY(-2px) scale(1.01);
}
.continent-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.country-highlights {
  background: #F6F6F2;
  border-radius: 12px;
  padding: 18px 16px;
  margin-top: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1.5px 6px 0 rgba(36,72,117,0.06);
}

/* ===========================
   MAIN NAVIGATION BAR
=========================== */
header {
  box-shadow: 0 1.5px 6px 0 rgba(36,72,117,0.05);
  background: #fff;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 21;
}
.main-nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
}
.main-nav img {
  height: 41px;
  margin-right: 20px;
}
.main-nav a {
  padding: 7px 18px;
  font-size: 1.03rem;
  font-weight: 500;
  color: #244875;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #244875;
  color: #fff;
}
.main-nav .cta-primary {
  background: #F5B041;
  color: #244875;
  border-radius: 16px;
  font-weight: 700;
  padding: 8px 22px;
  margin-left: 10px;
  box-shadow: 0 3px 18px rgba(245,176,65,0.08);
  border: none;
  transition: background 0.19s, color 0.19s, transform 0.21s, box-shadow 0.23s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #244875;
  color: #fff;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 7px 36px 0 rgba(36,72,117,0.10);
}

/* ===========================
   MOBILE MENU STYLES
=========================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #244875;
  font-size: 2rem;
  position: absolute;
  right: 16px;
  top: 15px;
  z-index: 61;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 7px;
  transition: background 0.17s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(36,72,117,0.09);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #244875;
  color: #fff;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 24px;
  transform: translateX(-105vw);
  transition: transform 0.45s cubic-bezier(.49,1.26,.17,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  right: 24px;
  top: 20px;
  font-size: 2.2rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 99;
  padding: 5px 13px;
  border-radius: 7px;
  transition: background 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(245,176,65,0.07);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 64px;
  width: 100%;
  align-items: flex-start;
  padding-left: 34px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 8px;
  transition: background 0.17s;
  width: 90vw;
  max-width: 440px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5B041;
  color: #244875;
  padding-left: 12px;
}

@media (max-width:1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width:1024px) {
  .main-nav {
    gap: 12px;
    font-size: 0.99rem;
  }
}
@media (max-width:900px) {
  .feature-grid > div, .continent-grid > div, .featured-articles > div {
    min-width: 180px;
    flex: 1 1 400px;
  }
}
@media (max-width:870px) {
  .main-nav a {
    font-size: 0.99rem;
    padding: 6px 10px;
  }
}
@media (max-width:860px) {
  .main-nav a {
    padding: 6px 5px;
  }
}

@media (max-width: 770px) {
  header {
    padding-bottom: 6px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section, .hero-section, .features-section, .about-section, .testimonials-section, .cta-section, .howitworks-section, .get-involved-section, .cookie-section, .terms-section, .gdpr-section, .privacy-section, .contact-section {
    padding: 26px 8px;
    border-radius: 0px 0px 20px 20px;
    margin-bottom: 44px;
  }
  .content-wrapper, .text-section {
    gap: 11px;
  }
  .feature-grid, .continent-grid, .featured-articles, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .hero-section {
    padding: 24px 8px 38px 8px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 32px;
  }
  h1 {
    font-size: 1.58rem;
    margin-bottom: 11px;
  }
  h2 {
    font-size: 1.23rem;
    margin-bottom: 9px;
  }
  .main-nav img {
    height: 31px;
    margin-right: 14px;
  }
  .card, .feature-grid > div, .continent-grid > div, .featured-articles > div {
    min-width: 0;
    width: 100%;
    padding: 16px 10px;
    border-radius: 10px;
    font-size: 0.97rem;
  }
  .country-highlights {
    margin-top: 14px;
    padding: 12px 7px;
  }
  .footer-brand {
    padding-bottom: 21px;
  }
  .footer-brand img {
    height: 34px;
  }
  .footer-nav {
    gap: 12px;
    font-size: 0.95rem;
    padding-top: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 500px) {
  .footer-brand p, .footer-nav a {
    font-size: 0.87rem;
  }
}

/* ===========================
   BUTTONS / CTA
=========================== */
.cta-primary, .filter-options a, .cookie-banner-btn, .cookie-modal-action {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 15px;
  background: #244875;
  color: #fff;
  padding: 12px 28px;
  font-size: 1.09rem;
  margin: 12px 0 0 0;
  box-shadow: 0 2.5px 14px rgba(36,72,117,0.07);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.21s;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus,
.filter-options a:hover, .filter-options a:focus,
.cookie-banner-btn:hover, .cookie-modal-action:hover,
.cookie-banner-btn:focus, .cookie-modal-action:focus {
  background: #F5B041;
  color: #244875;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 7px 34px rgba(245,176,65,0.12);
  text-decoration: none;
}
.filter-options a {
  background: #F6F6F2;
  color: #244875;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 14px;
  margin: 3px 7px 3px 0;
  border-radius: 10px;
  box-shadow: none;
  border: 1.5px solid #24487511;
  transition: background 0.18s, color 0.18s;
}


/* ===========================
   INPUTS & FORMS
=========================== */
input[type="text"], input[type="email"], select, textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  padding: 13px 13px;
  border: 1.5px solid #24487518;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.21s;
  margin-bottom: 18px;
  background: #F8F8F3;
}
input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
  border-color: #F5B041;
  background: #fff;
}

select {
  cursor: pointer;
}

/* ===========================
   FILTERS & TAGS
=========================== */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 15px 0 0 0;
}
.filter-options ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}
.filter-options h3 {
  margin-bottom: 5px;
}
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 19px 0 0 0;
  list-style: none;
}
.topic-tags li {
  background: #F5B041;
  color: #244875;
  padding: 7px 14px;
  border-radius: 13px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #244875;
  color: #fff;
  padding: 0;
}
.footer-nav a {
  color: #fff;
  opacity: 0.85;
  padding: 2px 10px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #F5B041;
  color: #244875;
  opacity: 1;
}
.footer-brand img {
  height: 42px;
}
.footer-brand p {
  color: #fff;
  margin: 3px 0 0 0;
  opacity: 0.8;
  font-size: 0.95rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ===========================
   COOKIE CONSENT BANNER & MODAL
=========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 14px rgba(36,72,117,0.10);
  padding: 23px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  z-index: 2200;
  transition: transform 0.42s cubic-bezier(.49,1.26,.17,1);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-text {
  font-size: 1rem;
  color: #244875;
  text-align: center;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-banner-btn {
  min-width: 110px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 9px 18px;
  background: #244875;
  color: #fff;
  border-radius: 12px;
  border: none;
  font-size: 0.99rem;
  cursor: pointer;
}
.cookie-banner-btn.settings {
  background: #F5B041;
  color: #244875;
}
.cookie-banner-btn.reject {
  background: #eee;
  color: #666;
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2300;
  background: rgba(36,72,117,0.11);
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadein 0.3s;
}
.cookie-modal.active {
  display: flex;
}
@keyframes fadein {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 38px rgba(36,72,117,0.17);
  padding: 28px 26px 22px 26px;
  min-width: 312px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-title {
  font-size: 1.21rem;
  font-weight: 700;
  color: #244875;
  margin-bottom: 3px;
}
.cookie-modal-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-modal-options label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-modal-category-title {
  font-weight: 600;
  color: #244875;
  margin-right: 7px;
}
.cookie-modal-switch {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #F5B041;
  border-radius: 10px;
  position: relative;
  outline: none;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-modal-switch:checked {
  background: #244875;
}
.cookie-modal-switch:before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 9px;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.18s;
}
.cookie-modal-switch:checked:before {
  left: 20px;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal-action {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #244875;
  color: #fff;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.cookie-modal-action.cancel {
  background: #F5B041;
  color: #244875;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 16px;
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 6px;
  transition: background 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F5B04111;
}

@media (max-width: 420px) {
  .cookie-modal-box {
    min-width:0;
    padding: 17px 5px 13px 5px;
  }
}

/* ===========================
   UTILITIES
=========================== */
.hide {
  display: none;
}
.flex {
  display: flex;
}
.align-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.gap-20 {
  gap: 20px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mt-20 {
  margin-top: 20px;
}

/* ===========================
   MISCELLANEOUS / OVERRIDES
=========================== */
@media (max-width: 440px) {
  .main-nav img, .footer-brand img {
    height: 28px;
  }
}

/* Ensure proper color contrast on testimonials/review blocks */
.testimonials-section, .testimonial-card {
  background: #F6F6F2;
  color: #222B3C;
}
.testimonial-card p, .testimonials-section p {
  color: #222B3C;
}

/* Card default for any card-like container */
.card, .feature-grid > div, .continent-grid > div, .featured-articles > div {
  border: 1.5px solid #24487511;
}

/* Text-image-section spacing for both desktop and mobile */
.text-image-section {
  margin-bottom: 28px;
}

/* ===========================
   FOCUS AND ACCESSIBILITY
=========================== */
a:focus, button:focus, input:focus, select:focus {
  outline: 2px solid #F5B041;
  outline-offset: 1px;
  z-index: 2;
}

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