/* CSS RESET & BASE STYLES */
html {
  box-sizing: border-box;
  font-size: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #ffffff;
  color: #1D3557;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1D3557;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B2222C;
  outline: none;
}
ul, ol {
  list-style: none;
  padding: 0;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  color: #1D3557;
  margin-bottom: 16px;
  font-weight: bold;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
}
p {
  font-size: 1rem;
  color: #333f53;
  margin-bottom: 12px;
}
blockquote {
  padding: 0;
  margin: 0 0 8px 0;
  border-left: 3px solid #1D3557;
  color: #222e40;
  background: none;
  font-style: italic;
}

/* LAYOUT UTILITY CLASSES with FLEXBOX */
.features-grid,
.services-list,
.guide-list,
.article-list,
.review-list,
.comparison-table-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid > div,
.services-list > div,
.guide-list > div,
.article-list > div,
.review-list > div,
.comparison-table-list > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(29,53,87,0.06);
  padding: 28px 22px;
  flex: 1 0 270px;
  min-width: 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.25s;
}
.features-grid > div:hover,
.services-list > div:hover,
.guide-list > div:hover,
.article-list > div:hover,
.review-list > div:hover,
.comparison-table-list > div:hover {
  box-shadow: 0 4px 24px 0 rgba(29,53,87,0.11);
}

.cta-section {
  background: #F1FAEE;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(29,53,87,0.07);
  margin-bottom: 60px;
  padding: 42px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(29,53,87,0.06);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 22px 0 rgba(29,53,87,0.13);
}
.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;
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F1FAEE;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(29,53,87,0.05);
  min-width: 260px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  flex-direction: column;
  color: #1D3557;
}
.testimonial-card blockquote {
  border-left: none;
  font-size: 1.08rem;
  color: #1D3557;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #555f75;
  font-style: italic;
  align-self: flex-end;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list li {
  background: #F1FAEE;
  border-radius:12px;
  box-shadow: 0 2px 12px rgba(29,53,87,0.05);
  padding: 18px 20px;
  margin-bottom: 4px;
}

/* BUTTONS & CTA */
.cta-btn,
button,
input[type="submit"] {
  display: inline-block;
  padding: 12px 30px;
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  font-size: 1.12rem;
  background: #1D3557;
  color: #fff;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 6px 0 rgba(29,53,87,0.10);
  transition: background 0.26s, box-shadow 0.24s, color 0.18s;
}
.cta-btn:hover,
.cta-btn:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: #B2222C;
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(178,34,44,0.13);
  outline: none;
}

/* HERO */
.hero {
  background: #F1FAEE;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 54px 0 54px 0;
  box-shadow: 0 2px 14px 0 rgba(29,53,87,0.08);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
  max-width:680px;
}
.hero h1 {
  color:#1D3557;
  font-size: 2.6rem;
  line-height: 1.17;
}

/* FILTERS */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 0.98rem;
  background: none;
  margin-bottom: 10px;
}
.filters span {
  color:#555f75;
  font-weight: 500;
}
.filters a {
  color:#1D3557;
  background: #F1FAEE;
  border-radius: 16px;
  padding: 6px 16px;
  transition: background 0.22s, color 0.15s;
  font-size: 0.98rem;
}
.filters a:hover,
.filters a:active,
.filters a.selected {
  background: #1D3557;
  color: #fff;
}

/* LISTS AND HIGHLIGHTS */
.guide-highlights, .editor-pick-highlight, .callout-best-picks, .consultation-highlights {
  background: #F1FAEE;
  border-radius: 12px;
  color: #1D3557;
  padding: 16px 18px;
  margin-top: 18px;
  font-size: 1.08rem;
  box-shadow: 0 1px 6px 0 rgba(29,53,87,0.05);
}
.guide-highlights strong,
.editor-pick-highlight strong,
.callout-best-picks strong,
.consultation-highlights strong {
  color: #B2222C;
}

/****************** HEADER & NAV ******************/
header {
  background: #fff;
  border-bottom: 1px solid #ecf2f7;
  box-shadow: 0 2px 8px 0 rgba(29,53,87,0.03);
  position: relative;
  z-index: 100;
  padding: 0 0 0 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
header a img {
  height:40px;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1D3557;
  font-size: 1rem;
  padding: 8px 8px;
  border-radius: 13px;
  font-weight: 500;
  transition: background 0.17s, color 0.16s;
  line-height: 1.3;
}
.main-nav a.cta-btn {
  margin-left: 14px;
  font-size:1.05rem;
  padding: 10px 22px;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #F1FAEE;
  color: #B2222C !important;
}
.main-nav a.cta-btn:hover,
.main-nav a.cta-btn:focus {
  background: #B2222C;
  color: #fff !important;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #1D3557;
  padding: 8px 12px;
  margin-left: 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.17s;
  z-index:999;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F1FAEE;
  color: #B2222C;
}

/********************************** MOBILE MENU **********************************/
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 44px 0 rgba(29,53,87,0.13);
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(0.6,0,0,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  color: #1D3557;
  padding: 18px 28px 10px 10px;
  margin: 0 0 8px 0;
  cursor: pointer;
  z-index:10001;
  transition: color 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #B2222C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width:100%;
  align-items: flex-start;
  padding: 12px 30px;
}
.mobile-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.21rem;
  color: #1D3557;
  background: none;
  padding: 11px 0 11px 0;
  border-radius:6px;
  width: 100%;
  font-weight: 500;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F1FAEE;
  color: #B2222C;
}

/******************* FOOTER *******************/
footer {
  background: #fff;
  border-top: 1px solid #ecf2f7;
  color: #1D3557;
  font-size: 1rem;
  margin-top: 60px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 48px 0 28px 0;
}
.footer-logo img {
  width: 56px;
  height: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 170px;
}
.footer-nav a {
  color: #1D3557;
  background: none;
  font-size: 1rem;
  border-radius: 8px;
  padding: 4px 0;
  font-weight: 500;
  transition:color 0.13s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #B2222C;
}
.footer-contact {
  min-width: 230px;
}
.footer-contact strong {
  color: #B2222C;
  font-size: 1.05rem;
}
.footer-contact ul {
  margin-top: 7px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.footer-contact a {
  color: #1D3557;
  text-decoration: underline;
  transition: color 0.14s;
}
.footer-contact a:hover,
.footer-contact a:focus {
  color: #B2222C;
}
.footer-social {
  display: flex;
  gap:16px;
  align-items:center;
}
.footer-social a img {
  width: 30px;
  height: 30px;
  transition:filter 0.18s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: brightness(0) saturate(100%) invert(22%) sepia(84%) saturate(657%) hue-rotate(331deg) brightness(100%) contrast(92%);
}
.copyright {
  text-align: center;
  color: #9ba4b5;
  font-size: 0.97rem;
  padding: 18px 0 30px 0;
}

/***************** TEXT & CONTENT SECTIONS *****************/
.text-section {
  margin-bottom: 20px;
}
.text-section ul,
.text-section li {
  margin-bottom: 8px;
  color: #222e40;
}
.text-section ul {
  padding-left: 24px;
  list-style: disc inside;
}
.text-section li strong {
  color: #1D3557;
}

/************* SPECIAL COMPONENTS *************/
.featured-review,
.guide-highlights,
.editor-pick-highlight,
.callout-best-picks,
.guide-highlights {
  margin-top: 28px;
  font-size: 1.1rem;
  padding: 16px 22px;
  border-radius: 14px;
  background: #F1FAEE;
  color:#1D3557;
  box-shadow: 0 1px 4px 0 rgba(29,53,87,0.04);
}
.featured-review a {
  color: #B2222C;
  font-weight: 600;
  margin-top: 6px;
  display: inline-block;
}

/*************** COOKIE CONSENT BANNER ***************/
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #F1FAEE;
  color: #1D3557;
  box-shadow: 0 -2px 14px 0 rgba(29,53,87,0.07);
  z-index: 99999;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  animation: slideInUp 0.45s cubic-bezier(0.25,0.75,0.40,1);
}
@keyframes slideInUp {
  from { transform: translateY(120%); }
  to   { transform: translateY(0); }
}
#cookie-banner.hide {
  display: none;
}
.cookie-banner-content {
  font-size: 1rem;
  text-align: center;
  color: #1D3557;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap:18px;
  align-items: center;
  justify-content: center;
}
#cookie-banner button {
  padding: 10px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 20px;
  background: #1D3557;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.21s, color 0.13s;
}
#cookie-banner button:hover,
#cookie-banner button:focus {
  background: #B2222C;
}
#cookie-banner button.cookie-settings-btn {
  background: #F1FAEE;
  color: #1D3557;
  border: 1px solid #1D3557;
  transition: background 0.21s, color 0.13s, border 0.13s;
}
#cookie-banner button.cookie-settings-btn:hover,
#cookie-banner button.cookie-settings-btn:focus {
  background: #1D3557;
  color: #fff;
  border: 1px solid #B2222C;
}

/*************** COOKIE MODAL (POPUP) **************/
#cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(29,53,87,0.33);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.22s linear;
}
#cookie-modal-overlay.active {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 42px rgba(29,53,87,0.13);
  max-width: 97vw;
  width: 400px;
  padding: 32px 28px 26px 28px;
  color: #1D3557;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modalSlideIn 0.31s cubic-bezier(0.25,0.71,0.41,1);
}
@keyframes modalSlideIn {
  from { transform: translateY(80px); opacity: 0 }
  to   { transform: translateY(0); opacity: 1 }
}
#cookie-modal-close {
  position: absolute;
  top: 8px;
  right: 16px;
  background: none;
  border: none;
  color:#1D3557;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  padding:4px 6px;
}
#cookie-modal-close:hover, #cookie-modal-close:focus {
  color:#B2222C;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin:16px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F1FAEE;
  border-radius: 9px;
  padding: 10px 12px;
  color:#1D3557;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-category input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: #1D3557;
  margin-right: 8px;
}
.cookie-category input[disabled] {
  opacity: 0.5;
}
#cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
#cookie-modal .cookie-actions button {
  padding: 9px 24px;
  border-radius: 20px;
}

/***************** RESPONSIVE DESIGN *****************/
@media (max-width: 1020px) {
  .container {
    max-width: 99vw;
  }
  .features-grid > div,
  .services-list > div,
  .guide-list > div,
  .article-list > div,
  .review-list > div,
  .comparison-table-list > div {
    min-width: 200px;
    flex-basis: 48%;
  }
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left:10px; padding-right:10px;
  }
  .hero {
    padding:32px 0 32px 0;
  }
  .features-grid,
  .services-list,
  .guide-list,
  .article-list,
  .review-list,
  .comparison-table-list {
    flex-direction: column;
  }
  .features-grid > div,
  .services-list > div,
  .guide-list > div,
  .article-list > div,
  .review-list > div,
  .comparison-table-list > div {
    min-width: unset;
    flex-basis: 100%;
  }
  .testimonials {
    flex-direction: column;
    gap: 14px;
  }
  .section, .cta-section {
    margin-bottom: 42px;
    padding: 24px 8px;
  }
  .footer-main {
    gap: 14px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.34rem; }
  h3 { font-size: 1.12rem; }
}
@media (max-width: 540px) {
  .footer-main {
    padding: 28px 0 16px 0;
  }
  .hero {
    padding:20px 0 20px 0;
    border-radius:12px;
  }
  .cta-section {
    padding:16px 6px;
    border-radius:11px;
  }
  .section {
    border-radius:9px;
    padding:14px 5px;
  }
}

