/* --- CSS RESET & NORMALIZE --- */
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;
  -webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #f7f9fb;
  color: #223E52;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #3776AB;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F0A202;
  text-decoration: underline;
}
li {
  list-style: none;
}

/* --- BASE TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #223E52;
  font-weight: 800;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p {
  margin-bottom: 16px;
  color: #223E52;
}
strong {
  font-weight: 700;
  color: #223E52;
}
.text-section ul, ul {
  padding-left: 1.2em;
}
.text-section li, ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.7;
}

/* --- UTILS & CONTAINER --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px 0 rgba(55,118,171,0.09), 0 1.5px 5px 0 rgba(240,162,2,0.04);
}

/* --- MAIN NAVIGATION --- */
header {
  background: #223E52;
  box-shadow: 0 4px 20px 0 rgba(55,118,171,0.11);
  position: sticky;
  top: 0;
  z-index: 40;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 18px 0;
  flex-wrap: wrap;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.main-nav a.cta-btn {
  background: #F0A202;
  color: #223E52;
  margin-left: 12px;
  font-size: 1.09rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  border-radius: 12px;
  box-shadow: 0 4px 12px 0 rgba(240,162,2,0.10);
  padding: 10px 22px;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #3776AB;
  color: #fff;
}
.main-nav a.cta-btn:hover,
.main-nav a.cta-btn:focus {
  background: #fff;
  color: #F0A202;
  box-shadow: 0 0 0 4px rgba(240,162,2,0.10);
}
.main-nav img {
  height: 42px;
  width: auto;
  margin-right: 16px;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #F0A202;
  color: #223E52;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 2.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  cursor: pointer;
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: 51;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #223E52;
  color: #F0A202;
  box-shadow: 0 1.5px 12px 0 rgba(55,118,171,0.09);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #223E52;
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,.2,.32,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 22px 25px 8px 0;
  cursor: pointer;
  z-index: 81;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #F0A202;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw;
  margin-top: 16px;
  padding: 0 32px;
  /* Ensures big click/touch targets */
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
.mobile-nav a.cta-btn {
  background: #F0A202;
  color: #223E52;
  border-radius: 12px;
  text-align: center;
  margin-top: 18px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #3776AB;
  color: #fff;
}
.mobile-nav a.cta-btn:hover, .mobile-nav a.cta-btn:focus {
  background: #fff;
  color: #F0A202;
  box-shadow: 0 0 0 4px rgba(240,162,2,0.11);
}

@media (max-width: 1130px) {
  .container { max-width: 97vw; }
}
@media (max-width: 888px) {
  .main-nav {
    font-size: 1rem;
    gap: 10px;
  }
  .main-nav a {
    padding: 8px 6px;
  }
}
@media (max-width: 870px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

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

/* --- HERO SECTION --- */
.hero {
  min-height: 310px;
  background: #3776AB;
  color: #fff;
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 54px 0 24px 0;
}
.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 24px rgba(55,118,171,0.12);
}
.hero p {
  color: #fff;
  font-size: 1.28rem;
  font-weight: 500;
  margin-bottom: 0;
}

/* --- BUTTONS --- */
.cta-btn,
button,
input[type="button"],
input[type="submit"] {
  display: inline-block;
  cursor: pointer;
  background: #F0A202;
  color: #223E52;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  padding: 11px 28px;
  border-radius: 16px;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 3px 14px 0 rgba(240,162,2, 0.12);
  transition: background 0.22s, color 0.14s, box-shadow 0.22s, transform 0.12s;
  outline: none;
}
.cta-btn:hover,
.cta-btn:focus,
button:hover,
button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: #223E52;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(55,118,171,0.12);
  transform: translateY(-2px) scale(1.03);
}

/* --- FEATURES SECTION --- */
.features {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 17px;
  margin-bottom: 10px;
  justify-content: space-between;
}
.feature-grid li {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 16px 0 rgba(55,118,171,0.07), 0 1.3px 5px 0 rgba(240,162,2,0.03);
  min-width: 160px;
  flex: 1 1 180px;
  padding: 26px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: transform 0.14s, box-shadow 0.23s;
  font-size: 1rem;
}
.feature-grid li strong {
  color: #3776AB;
  font-size: 1.08rem;
}
.feature-grid li img {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
}
.feature-grid li:hover,
.feature-grid li:focus-within {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 9px 36px 0 rgba(55,118,171,0.17);
  background: #F6FAFE;
}

/* --- ARTICLE PREVIEW --- */
.latest-articles {
  margin-bottom: 60px;
}
.article-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  margin-top: 8px;
}
.article-preview-list li {
  flex: 1 1 310px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 16px 0 rgba(55,118,171,0.1);
  padding: 24px 18px 20px 18px;
  margin-bottom: 20px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.12s, box-shadow 0.2s;
}
.article-preview-list li:hover,
.article-preview-list li:focus-within {
  transform: translateY(-4px) scale(1.017);
  box-shadow: 0 9px 34px 0 rgba(55,118,171,0.20);
}
.article-preview-list h3 {
  color: #3776AB;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.article-preview-list a {
  font-size: 0.98rem;
  font-weight: 600;
  color: #223E52;
  margin-top: 8px;
  text-decoration: underline;
  transition: color 0.2s;
}
.article-preview-list a:hover,
.article-preview-list a:focus {
  color: #F0A202;
}

/* --- REVIEW GRIDS --- */
.review-cards, .app-review-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
  justify-content: flex-start;
}
.review-cards > div, .app-review-cards > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2.5px 12px 0 rgba(55,118,171,0.09);
  padding: 26px 18px 20px 18px;
  min-width: 205px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.17s, box-shadow 0.18s;
}
.review-cards > div:hover, .app-review-cards > div:hover {
  box-shadow: 0 8px 25px 0 rgba(240,162,2,0.09);
  transform: scale(1.03) translateY(-5px);
}

/* --- GENERIC CARDS/ITEMS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2.5px 12px 0 rgba(55,118,171,0.10);
  padding: 24px 18px;
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
/* -- Reusable Flex Utility -- */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TESTIMONIALS --- */
.testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 20px 0 rgba(55,118,171,0.11);
  margin-bottom: 20px;
  color: #223E52;
  font-size: 1.12rem;
  min-width: 220px;
  flex-wrap: wrap;
}
.testimonial-card p {
  color: #223E52;
  margin: 0 0 0 0;
  font-size: 1.12rem;
  flex: 1 1 auto;
}
.testimonial-card span {
  color: #3776AB;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  margin-left: 14px;
  white-space: nowrap;
}

/* --- DIRECTORY & LISTS --- */
.directory ul, .news-list, .article-list ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.news-feed {
  margin-bottom: 60px;
}
.news-list li {
  background: #F6FAFE;
  border-radius: 13px;
  padding: 11px 14px;
  font-size: 1.01rem;
}

/* --- FOOTER --- */
footer {
  background: #223E52;
  color: #fff;
  margin-top: 40px;
  position: relative;
  z-index: 10;
  width: 100%;
}
footer .container {
  padding: 22px 14px 16px 14px;
}
.footer-menu {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-menu a {
  color: #fff;
  opacity: 0.82;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.19s, opacity 0.19s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: #F0A202;
  opacity: 1;
}
.social-links {
  display: flex;
  gap: 17px;
  align-items: center;
  margin-bottom: 15px;
}
.social-links a img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: filter 0.18s;
}
.social-links a:hover img,
.social-links a:focus img {
  filter: brightness(1) sepia(1) hue-rotate(-20deg) saturate(7) brightness(1.25);
}
footer p {
  font-size: 0.97rem;
  opacity: 0.88;
  margin-bottom: 0;
}

/* --- NEWSLETTER --- */
.newsletter ul {
  margin-top: 12px;
  margin-bottom: 16px;
}
.newsletter ul li {
  color: #3776AB;
  font-weight: 550;
  margin-bottom: 7px;
  font-size: 1.02rem;
}

/* --- MAP SECTION --- */
.map img {
  width: 100%;
  max-width: 430px;
  border-radius: 18px;
  box-shadow: 0 3.5px 20px 0 rgba(55,118,171,0.11);
  margin-top: 14px;
}

/* --- ICONS IN LISTS --- */
.text-section ul li img,
.contact ul li img {
  width: 23px;
  height: 23px;
  margin-right: 9px;
  vertical-align: bottom;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: #223E52;
  color: #fff;
  padding: 22px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -3px 30px 0 rgba(55,118,171,0.18);
  font-size: 1.01rem;
  border-radius: 22px 22px 0 0;
  animation: fadein-banner 0.4s;
}
@keyframes fadein-banner {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-consent-banner button {
  min-width: 120px;
  padding: 10px 22px;
  border-radius: 9px;
  font-size: 1rem;
  background: #fff;
  color: #223E52;
  font-weight: 800;
  border: none;
  box-shadow: 0 2px 10px 0 rgba(240,162,2,0.10);
  transition: background 0.17s, color 0.14s;
}
.cookie-consent-banner button.accept {
  background: #F0A202;
  color: #223E52;
}
.cookie-consent-banner button.reject {
  background: #ef5758;
  color: #fff;
}
.cookie-consent-banner button.settings {
  background: #3776AB;
  color: #fff;
}
.cookie-consent-banner button:hover,
.cookie-consent-banner button:focus {
  background: #223E52;
  color: #fff;
}
.cookie-consent-banner button.accept:hover,
.cookie-consent-banner button.accept:focus {
  background: #fff;
  color: #F0A202;
}
.cookie-consent-banner button.reject:hover,
.cookie-consent-banner button.reject:focus {
  background: #fff;
  color: #ef5758;
}
.cookie-consent-banner button.settings:hover,
.cookie-consent-banner button.settings:focus {
  background: #fff;
  color: #3776AB;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1100;
  background: rgba(34,62,82,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein-modal 0.25s;
}
@keyframes fadein-modal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #223E52;
  border-radius: 20px;
  box-shadow: 0 4px 32px 0 rgba(55,118,171,0.25);
  max-width: 400px;
  width: 86vw;
  padding: 34px 30px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #3776AB;
  font-weight: 700;
  font-size: 1.17rem;
  margin-bottom: 8px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 17px;
  background: none;
  border: none;
  color: #223E52;
  font-size: 1.45rem;
  font-weight: 900;
  cursor: pointer;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-modal label {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #F0A202;
}
.cookie-modal .category-essential {
  color: #223E52;
  font-weight: 700;
}
.cookie-modal .cookie-btn-group {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
/* --- RESPONSIVES --- */
@media (max-width: 1240px) {
  .feature-grid li,
  .article-preview-list li,
  .app-review-cards > div,
  .review-cards > div {
    flex-basis: 240px;
  }
}
@media (max-width: 1050px) {
  .feature-grid li,
  .article-preview-list li,
  .app-review-cards > div,
  .review-cards > div {
    flex-basis: 170px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .hero .content-wrapper {
    padding: 34px 0 12px 0;
  }
}
@media (max-width: 768px) {
  .content-grid,
  .article-preview-list,
  .feature-grid,
  .review-cards,
  .app-review-cards {
    flex-direction: column !important;
    gap: 20px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 7px;
  }
  .testimonials,
  .features,
  .latest-articles,
  .newsletter,
  .news-feed,
  .hero, .map {
    padding: 25px 6px;
    margin-bottom: 24px;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 7px;
    border-radius: 13px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .main-nav img {
    height: 32px;
    margin-right: 8px;
  }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 7px; }
  .testimonial-card span { margin-left: 0; margin-top: 6px; }
  .text-image-section { flex-direction: column; gap: 12px; }
}
@media (max-width: 510px) {
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.06rem; }
  .hero h1 { font-size: 1.38rem; }
  .cta-btn, button, .cookie-consent-banner button {
    font-size: 0.96rem;
    padding: 8px 13px;
  }
  .container { padding: 0 2px; }
  .cookie-modal { padding: 22px 6px 14px 6px; max-width: 97vw; }
}

/* --- CUSTOM UTILITIES --- */
.border-accent {
  border: 2px solid #F0A202;
}
.text-accent {
  color: #F0A202;
}
.bg-primary {
  background: #223E52;
  color: #fff;
}
.bg-secondary {
  background: #3776AB;
  color: #fff;
}
.bg-accent {
  background: #F0A202;
  color: #223E52;
}
.shadow {
  box-shadow: 0 3px 18px 0 rgba(55,118,171,0.16);
}

/* --- ANIMATIONS, HOVER EFFECTS, MICRO-INTERACTIONS --- */
.card, .card-container > *, .feature-grid li, .article-preview-list li, .testimonial-card {
  transition: box-shadow 0.23s, transform 0.17s, background 0.22s;
}
.card:focus-within,
.card:hover, .card-container > *:focus-within, .card-container > *:hover { 
  box-shadow: 0 8px 34px 0 rgba(55,118,171,0.19);
  transform: translateY(-4px) scale(1.02);
}

/* --- PRINT: No mobile menu/cookie --- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
}
