/* 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: inherit;
  color: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F7FAFC;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #23405C;
  min-height: 100vh;
  line-height: 1.6;
  font-weight: 400;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #227C9D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #23405C;
  text-decoration: underline;
}
ul, ol {
  list-style-position: inside;
  margin-left: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #23405C;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 {
  font-size: 2.625rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4, h5, h6 {
  margin-bottom: 10px;
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 600;
}

/* CONTAINER & SECTIONS */
.container {
  width: 100%;
  max-width: 1192px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(35,64,92,0.03);
  border-radius: 12px;
  transition: box-shadow 0.3s;
}

/* LAYOUT FLEX UTILITIES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(35,64,92,0.07);
  margin-bottom: 20px;
  padding: 32px 28px;
  flex: 1 1 320px;
  position: relative;
  transition: box-shadow 0.25s;
  border: 1px solid #e5ecf2;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(35,64,92,0.12);
}
.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 {
  background: #f2f5f8;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(35,64,92,0.04);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  flex: 1 1 330px;
  color: #23405C;
  font-size: 1.125rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f7fafc;
  border-radius: 10px;
  border: 1px solid #e5ecf2;
  padding: 24px;
  flex: 1 1 220px;
  transition: box-shadow 0.27s;
}
.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.feature-item:hover {
  box-shadow: 0 6px 16px rgba(35,64,92,0.09);
  background: #eef3fa;
}

/* HEADER & NAVIGATION */
header {
  background: #23405C;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: 36px;
}
.main-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 8px 0;
  transition: color 0.18s;
  position: relative;
}
.main-nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  background: #227C9D;
  position: absolute;
  bottom: -4px;
  left: 0;
  transform: scaleX(0);
  transition: transform 0.25s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #227C9D;
}
.main-nav a:hover::after,
.main-nav a:focus::after {
  transform: scaleX(1);
}
.cta-btn {
  background: #227C9D;
  color: #fff;
  border-radius: 24px;
  padding: 10px 34px;
  margin-left: 36px;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34,124,157,0.08);
  transition: background 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #23405C;
  color: #fff;
  box-shadow: 0 4px 18px rgba(34,124,157,0.12);
}

/* HERO & HOME ELEMENTS */
.hero {
  background: linear-gradient(90deg, #23405C 75%, #227C9D 100%);
  color: #fff;
  border-radius: 0 0 24px 24px;
  margin-bottom: 60px;
  padding: 52px 0 44px 0;
}
.hero .content-wrapper {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: #fff;
  font-size: 2.625rem;
  line-height: 1.12;
}
.hero p {
  color: #e7eef8;
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.hero .cta-btn {
  margin-left: 0;
  margin-top: 16px;
}

/* SEARCH BAR */
.search-bar {
  display: flex;
  align-items: center;
  margin: 32px 0 10px 0;
}
.search-bar input[type="text"] {
  width: 300px;
  max-width: 90vw;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #b6c7dd;
  font-size: 1rem;
  background: #f7fafc;
  color: #23405C;
  transition: box-shadow 0.2s, border-color 0.2s;
  outline: none;
}
.search-bar input[type="text"]:focus {
  border-color: #227C9D;
  box-shadow: 0 2px 12px rgba(34,124,157,0.16);
}

/* FILTERS & DROPDOWNS */
.sort-filter, .category-filter, .topic-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.sort-filter select, .category-filter select, .topic-filter select {
  border-radius: 8px;
  border: 1px solid #b6c7dd;
  padding: 8px 18px 8px 8px;
  font-size: 1rem;
  background: #f7fafc;
  color: #23405C;
  transition: border-color 0.2s, box-shadow 0.18s;
}
.sort-filter select:focus, .category-filter select:focus, .topic-filter select:focus {
  border-color: #227C9D;
  box-shadow: 0 2px 10px rgba(34,124,157,0.13);
}

/* REVIEWLISTS, CARDS & OVERVIEWS */
.feature-grid, .reviews-list, .ranking-list, .guides-list, .statistics, .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.review-card, .ranking-card, .guide-card, .stat {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(35,64,92,0.05);
  border: 1px solid #e5ecf2;
  padding: 22px 22px 18px 22px;
  margin-bottom: 20px;
  flex: 1 1 280px;
  min-width: 240px;
  transition: box-shadow 0.25s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.review-card:hover, .ranking-card:hover, .guide-card:hover {
  box-shadow: 0 4px 16px rgba(34,124,157,0.13);
  border-color: #227C9D;
}
.review-card h3, .ranking-card h3, .guide-card h3 {
  margin-bottom: 8px;
}
.link-detail {
  margin-top: auto;
  color: #227C9D;
  font-weight: 600;
  transition: color 0.2s;
  display: inline-block;
}
.link-detail:hover,
.link-detail:focus {
  color: #23405C;
  text-decoration: underline;
}
.ranking-list {
  gap: 24px;
}
.ranking-card {
  min-width: 300px;
}
.guides-list {
  gap: 24px;
}

.statistics {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 12px;
  margin-bottom: 4px;
}
.stat {
  background: #f2f6f9;
  color: #23405C;
  border-radius: 10px;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-align: center;
  padding: 32px 36px 20px 36px;
  flex: 1 1 170px;
}
.stat span {
  font-size: 2rem;
  color: #227C9D;
  display: block;
  margin-bottom: 10px;
}

.testimonial-slider {
  gap: 24px;
  flex-wrap: wrap;
}

.testimonial-card p {
  color: #23405C;
  margin-bottom: 10px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #227C9D;
}

/* Reviews & Guides Summaries */
.reviews-summary, .guides-teaser {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 8px;
}
.reviews-summary > div, .guides-teaser > ul {
  background: #f2f6f9;
  padding: 20px 21px;
  border-radius: 10px;
  flex: 1 1 260px;
  min-width: 210px;
  box-shadow: 0 1px 8px rgba(34,124,157,0.04);
  margin-bottom: 18px;
}

.rankings-overview ul, .guides-teaser ul {
  padding-left: 16px;
  list-style-type: disc;
}

.rankings-overview ul li, .guides-teaser ul li {
  margin-bottom: 8px;
}

/* About Section */
.about-section {
  background: #f7fafc;
  border-radius: 12px;
  border: 1px solid #e5ecf2;
  padding: 24px 24px 20px 24px;
  margin-bottom: 16px;
}
.about-section ul {
  margin-top: 14px;
  padding-left: 20px;
}
.about-section li {
  margin-bottom: 10px;
}

/* Thank You Message */
.thank-you-message {
  background: #fff;
  border: 1px solid #e5ecf2;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(34,124,157,0.08);
}
.thank-you-message .cta-btn {
  margin-top: 22px;
  padding: 10px 38px;
}

/* Contact Info Section */
.contact-info {
  background: none;
  color: #23405C;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.06rem;
  padding: 0;
  margin-bottom: 14px;
}
.contact-info img {
  height: 18px;
  width: 18px;
  vertical-align: middle;
  margin-right: 8px;
}
.contact-disclaimer {
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e5ecf2;
  padding: 16px 18px;
  margin-bottom: 14px;
  font-size: 0.98rem;
  color: #23405C;
}

/* FOOTER */
footer {
  background: #1b2f43;
  color: #fff;
  padding: 0 0 0 0;
}
.footer-top {
  border-bottom: 1px solid #227C9D;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 20px 24px 20px;
}
.footer-top a img {
  height: 38px;
  width: auto;
}
.footer-nav {
  display: flex;
  gap: 26px;
}
.footer-nav a {
  color: #fafbfd;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.18s;
  font-size: 1rem;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #227C9D;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 12px 20px;
  font-size: 0.98rem;
  flex-wrap: wrap;
}
.footer-bottom .contact-info {
  color: #fff;
  font-size: 1rem;
}
.footer-bottom small {
  color: #ced4df;
}

/* MOBILE MENU & BURGER */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1202;
  background: #23405C;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(35,64,92,0.15);
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus {
  background: #227C9D;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 98vw;
  height: 100vh;
  background: #23405C;
  color: #fff;
  box-shadow: -4px 0 22px rgba(35,64,92,0.3);
  z-index: 1400;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  visibility: hidden;
}
.mobile-menu.active {
  transform: translateX(0);
  box-shadow: -4px 0 24px rgba(34,124,157,0.19);
  visibility: visible;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2rem;
  border: none;
  align-self: flex-end;
  margin: 24px 18px 18px 0;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 1401;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #227C9D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 32px 32px 32px;
}
.mobile-nav a {
  color: #fff;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  border-bottom: 1px solid #30557a;
  padding: 14px 0;
  transition: color 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #227C9D;
}

/* Responsive Hide/Show */
@media (max-width: 1023px) {
  .main-nav,
  .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
  header .container {
    justify-content: flex-start;
  }
}
@media (min-width: 1024px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* RESPONSIVE DESIGN ADJUSTMENTS */
@media (max-width: 880px) {
  .footer-top, .footer-bottom, .content-grid, .statistics, .feature-grid, .reviews-list, .ranking-list, .guides-list, .testimonial-slider, .reviews-summary, .guides-teaser {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }
  .feature-item,
  .guide-card,
  .ranking-card,
  .review-card,
  .stat,
  .testimonial-card {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.4rem;}
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 26px 6px;
    margin-bottom: 32px;
  }
  .card,
  .stat {
    padding: 18px 10px;
  }
  .card-container,
  .feature-grid,
  .content-grid,
  .reviews-list,
  .testimonial-slider,
  .statistics {
    gap: 14px;
  }
  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-nav { gap: 12px; }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .hero {
    padding: 44px 0 34px 0;
  }
  .hero .content-wrapper { gap: 12px; }
  .search-bar input[type="text"] {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 460px) {
  .footer-nav {
    gap: 10px;
    flex-wrap: wrap;
  }
  .about-section,
  .thank-you-message {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9980;
  background: #23405C;
  color: #fff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 18px 16px;
  box-shadow: 0 -2px 32px rgba(35,64,92,0.15);
  font-size: 1rem;
  transition: transform 0.48s cubic-bezier(.85,-0.44,.25,1.28);
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner p {
  margin-bottom: 0;
  max-width: 430px;
}
.cookie-banner .cookie-btn {
  background: #227C9D;
  border-radius: 24px;
  border: none;
  color: #fff;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 26px;
  margin: 0 2px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.16s;
  box-shadow: 0 2px 12px rgba(34,124,157,0.1);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #1b2f43;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  border: 2px solid #227C9D;
  color: #227C9D;
  margin-left: 10px;
}
.cookie-banner .cookie-settings-btn:hover {
  color: #fff;
  background: #227C9D;
  border-color: #227C9D;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,64,92,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity 0.22s;
}
.cookie-modal {
  background: #fff;
  color: #23405C;
  border-radius: 18px;
  box-shadow: 0 4px 44px rgba(35,64,92,0.23);
  padding: 38px 44px 35px 44px;
  width: 96vw;
  max-width: 414px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-in 0.36s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes cookie-modal-in {
  0% {
    transform: scale(0.89) translateY(28px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.cookie-modal h2 {
  font-size: 1.345rem;
  margin-bottom: 8px;
  color: #23405C;
}
.cookie-modal .cookie-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #f4f8fc;
  border-radius: 8px;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
  color: #227C9D;
}
.cookie-modal .cookie-category .cookie-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cookie-modal .cookie-toggle input[type="checkbox"] {
  accent-color: #227C9D;
  width: 21px; height: 21px;
}
.cookie-modal .cookie-toggle input[type="checkbox"]:disabled {
  opacity: 0.55;
}
.cookie-modal .cookie-btns {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 14px;
}
.cookie-modal .cookie-btn {
  background: #227C9D;
  border-radius: 24px;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  padding: 8px 24px;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal .cookie-btn:hover {
  background: #23405C;
}
.cookie-modal .cookie-btn.secondary {
  background: transparent;
  border: 2px solid #227C9D;
  color: #227C9D;
}
.cookie-modal .cookie-btn.secondary:hover {
  background: #227C9D;
  color: #fff;
}

@media (max-width: 480px) {
  .cookie-modal {
    padding-left: 18px;
    padding-right: 18px;
    max-width: 98vw;
  }
}

/* MISCELLANEOUS */
::-webkit-input-placeholder { color: #45617a; opacity: 1; }
::-moz-placeholder { color: #45617a; opacity: 1; }
:-ms-input-placeholder { color: #45617a; opacity: 1; }
::placeholder { color: #45617a; opacity: 1; }

::-webkit-scrollbar {
  width: 9px;
  background: #f3f5fa;
}
::-webkit-scrollbar-thumb {
  background: #b6c7dd;
  border-radius: 6px;
}

/* Focus States for Accessibility */
a:focus, .cta-btn:focus, button:focus, select:focus, input:focus {
  outline: 2px solid #227C9D;
  outline-offset: 1px;
}

/* Hide scroll on mobile menu */
body.menu-open {
  overflow: hidden;
}

/* Prevent content overlapping, minimum margins */
.section, .card, .feature-item, .review-card, .guide-card, .ranking-card, .stat, .testimonial-card {
  margin-bottom: 20px;
}
/* Prevent absolute positioning for content */
.card, .feature-item, .review-card, .guide-card, .ranking-card, .stat, .testimonial-card, .about-section, .thank-you-message {
  position: relative;
}
