/* ======================================================
   CSS RESET & BASELINE
====================================================== */
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, main, 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 {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #FFFFFF;
  color: #1E293B;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: background 0.25s;
}
img,
picture,
video,
canvas,
svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: #005694;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #027BCE;
  text-decoration: underline;
}
strong, b {
  font-weight: 600;
  color: #1E293B;
}

/* Base utility classes */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ======================================================
   TYPOGRAPHY
====================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #1E293B;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  font-weight: 600;
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}
p, li, blockquote, .subheadline {
  font-size: 1rem;
  color: #233247;
  margin-bottom: 14px;
  line-height: 1.7;
}
.subheadline {
  font-size: 1.18rem;
  font-weight: 400;
  color: #027BCE;
  letter-spacing: 0.02em;
  margin-bottom: 30px;
}
ul, ol {
  margin-bottom: 24px;
  margin-left: 20px;
}
ul li, ol li {
  margin-bottom: 8px;
}
blockquote {
  border-left: 3px solid #027BCE;
  padding-left: 16px;
  color: #263149;
  font-style: italic;
  margin-bottom: 12px;
}

/* ======================================================
   HEADER & NAVIGATION
====================================================== */
header {
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0 2px 12px 0 rgba(30,41,59,0.06);
  z-index: 21;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
  padding: 0 20px;
  position: relative;
}
.logo img {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  margin-left: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #1E293B;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #027BCE;
  border-bottom: 2px solid #027BCE;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 28px;
  background: #027BCE;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: background 0.20s, transform 0.15s;
  box-shadow: 0 2px 14px 0 rgba(2,123,206,0.07);
  margin-left: 22px;
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #005694;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}

/* Hamburger menu (shown mobile only) */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #027BCE;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 18px;
  z-index: 1002;
  transition: color 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #005694;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,41,59,0.92);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.40s cubic-bezier(.86,0,.07,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #FFFFFF;
  align-self: flex-end;
  padding: 18px 20px 6px 20px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1003;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #027BCE;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
  padding: 24px 32px;
}
.mobile-nav a {
  color: #FFFFFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 14px 0;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #027BCE;
  color: #FFF;
}

/* Hide main-nav on mobile, show hamburger */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu { display: none !important; }
}

/* ======================================================
   SECTIONS, LAYOUT, SPACING
====================================================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 2px 14px 0 rgba(30,41,59,0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero {
  background: #F0F4F8;
  border-radius: 0 0 32px 32px;
  box-shadow: none;
  padding-top: 54px;
  padding-bottom: 64px;
  margin-bottom: 52px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 0;
}

@media (max-width: 900px){
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
  section {
    padding: 28px 6px;
  }
  .hero {
    padding-top: 30px; padding-bottom: 34px;
  }
}

/* Spacing utility for text sections */
.text-section, .short-summaries, .step-by-step-guides, .event-coverage-highlights {
  margin-bottom: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* Mandatory layout selectors */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1.5px 14px 0 rgba(30,41,59,0.08);
  padding: 28px;
  min-width: 270px;
}
.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: #F0F4F8;
  border-radius: 18px;
  box-shadow: 0 1.5px 14px 0 rgba(30,41,59,0.08);
  margin-bottom: 24px;
  min-width: 340px;
  max-width: 680px;
}
.testimonial-card blockquote {
  color: #1E293B;
  border: none;
  margin-bottom: 2px;
  font-style: normal;
  font-size: 1.03rem;
}
.testimonial-meta {
  display: block;
  color: #005694;
  font-size: 0.98rem;
  margin-top: 4px;
}
.testimonial-stars {
  min-width: 46px;
  font-size: 1.25rem;
  color: #027BCE;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F8FAFC;
  padding: 24px 18px 20px 18px;
  border-radius: 15px;
  box-shadow: 0 0.5px 8px 0 rgba(30,41,59,0.06);
  min-width: 220px;
  margin-bottom: 20px;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 2px;
  filter: grayscale(0.15) contrast(1.2);
}

/* Feature Grids & Tables */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px){
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* Review-/Tutorial-Lists, Cards */
.review-list, .tutorial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
}
.review-item, .tutorial-item {
  background: #F8FAFC;
  border-radius: 13px;
  padding: 22px 18px;
  min-width: 224px;
  box-shadow: 0 0.5px 8px 0 rgba(30,41,59,0.04);
}

/* Service List */
.service-list, .consulting-options-list, .value-list, .usp-list, .news-types-list, .icon-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding-left: 0;
}
.service-list span {
  color: #027BCE;
  font-weight: 600;
  margin-left: 8px;
  font-size: 0.98em;
}
.value-list li, .usp-list li, .news-types-list li, .icon-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  margin-bottom: 0px;
}
.value-list img, .icon-list img {
  width: 28px;
  height: 28px;
}

/* Table Styles */
.comparison-table-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  overflow-x: auto;
  margin-bottom: 24px;
}
.comparison-table-grid table {
  border-collapse: collapse;
  background: #F8FAFC;
  min-width: 440px;
  width: 100%;
}
.comparison-table-grid th, .comparison-table-grid td {
  padding: 12px 14px;
  border-bottom: 1px solid #E6EAF0;
  text-align: left;
}
.comparison-table-grid th {
  background: #E6EAF0;
  color: #1E293B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.comparison-table-grid tr:last-child td {
  border-bottom: none;
}

/* Top Reports List */
.top-reports-list {
  margin: 24px 0 0 0;
}
.top-reports-list ul {
  padding-left: 22px;
  margin-bottom: 0;
}

/* Social Links */
.social-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 18px;
  align-items: center;
  justify-content: flex-start;
}
.social-links a img {
  width: 30px;
  height: 30px;
  transition: filter 0.17s;
  filter: grayscale(0.01) contrast(1.25);
}
.social-links a:hover img {
  filter: brightness(1) contrast(2) saturate(1.3);
}

/* ======================================================
   FOOTER
====================================================== */
footer {
  background: #F0F4F8;
  color: #1E293B;
  padding: 38px 0 28px 0;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -1.5px 14px 0 rgba(30,41,59,0.09);
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer-navigation {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 12px;
}
.footer-navigation a {
  color: #1E293B;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.92;
  transition: color 0.16s;
}
.footer-navigation a:hover,
.footer-navigation a:focus {
  color: #027BCE;
}
.contact-info {
  font-size: 0.97rem;
  color: #233247;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 768px) {
  header .container {
    padding: 0 10px;
    gap: 10px;
    min-height: 52px;
  }
  .logo img {
    height: 34px;
  }
  .btn-primary {
    padding: 10px 16px;
    font-size: 1rem;
    margin-left: 0;
  }
  .footer-navigation {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
  }
  .container {
    max-width: 98vw;
    padding: 0 4px;
  }
  section {
    padding: 22px 2px;
    border-radius: 13px;
    margin-bottom: 36px;
  }
  .hero {
    border-radius: 0 0 18px 18px;
    padding: 20px 2px 28px 2px;
    margin-bottom: 30px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    min-width: 0;
    max-width: 100vw;
  }
  .feature-item {
    min-width: 0;
    padding: 16px 10px 14px 10px;
  }
  .review-item, .tutorial-item { min-width: 0; }
  .card {
    padding: 16px;
    min-width: 0;
  }
  .social-links a img {
    width: 26px;
    height: 26px;
  }
  .comparison-table-grid table {
    min-width: 340px;
  }
  .content-wrapper { align-items: flex-start; }
  .text-image-section { flex-direction: column; gap: 14px; }
}

/* Align images and text appropriately in text-image sections */
.text-image-section img {
  max-width: 380px;
  min-width: 0;
  border-radius: 13px;
  box-shadow: 0 1.5px 10px 0 rgba(30,41,59,0.07);
}

/* Extra large screen refinement */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  .feature-item {
    min-width: 248px;
  }
}

/* ======================================================
   HOVER EFFECTS, BUTTONS, TRANSITIONS
====================================================== */
button, .btn-primary, input[type=submit] {
  outline: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  border-radius: 7px;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s;
}
button:active, .btn-primary:active {
  box-shadow: 0 3px 16px 0 rgba(2,123,206,0.10);
  transform: translateY(2px) scale(0.98);
}

/* Link underline on focus for accessibility */
.main-nav a:focus-visible, .footer-navigation a:focus-visible, a:focus-visible {
  outline: 2px solid #027BCE;
  outline-offset: 1px;
}

/* Micro-interactions for cards/features */
.card, .feature-item, .review-item, .tutorial-item, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover, .feature-item:hover, .review-item:hover, .tutorial-item:hover, .testimonial-card:hover {
  box-shadow: 0 4px 20px 0 rgba(2,123,206,0.13);
  transform: translateY(-2px) scale(1.015);
}

/* ======================================================
   COOKIE CONSENT BANNER & MODAL
====================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
  color: #1E293B;
  box-shadow: 0 -2px 18px 0 rgba(30,41,59,0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  padding: 24px 32px;
  z-index: 1101;
  gap: 20px;
  min-height: 80px;
  transition: transform 0.40s cubic-bezier(.88,0,.12,1);
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(130%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
}
.cookie-banner button,
.cookie-banner .settings-btn {
  padding: 9px 20px;
  border-radius: 19px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 0;
}
.cookie-banner .accept-btn {
  background: #027BCE;
  color: #FFF;
  font-weight: 600;
}
.cookie-banner .accept-btn:hover { background: #005694; }
.cookie-banner .reject-btn {
  background: #E6EAF0;
  color: #1E293B;
}
.cookie-banner .reject-btn:hover {
  background: #d2e5f7;
}
.cookie-banner .settings-btn {
  background: none;
  color: #027BCE;
  text-decoration: underline;
  opacity: 0.98;
}
.cookie-banner .settings-btn:hover {
  color: #005694;
}
@media (max-width: 670px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 10px;
    gap: 18px;
    font-size: 0.98rem;
  }
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,41,59,0.45);
  z-index: 1201;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(.8,0,.2,1);
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  max-width: 400px;
  width: 100%;
  padding: 34px 28px 26px 28px;
  box-shadow: 0 4px 32px 0 rgba(2,123,206,0.13);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-content h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.cookie-modal-content .close-modal {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #027BCE;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.cookie-modal-content .close-modal:hover { color: #005694; }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 12px 0 18px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label,
.cookie-category input[type=checkbox] {
  cursor: pointer;
}
.cookie-category .switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 21px;
}
.cookie-category .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-category .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E6EAF0;
  border-radius: 14px;
  transition: background 0.2s;
}
.cookie-category .switch input:checked + .slider {
  background: #027BCE;
}
.cookie-category .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2.4px;
  background: #FFF;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1.5px 7px 0 rgba(30,41,59,0.1);
}
.cookie-category .switch input:checked + .slider:before {
  transform: translateX(15px);
}
.cookie-category .category-label {
  font-weight: 500;
  font-size: 1rem;
  color: #1E293B;
  margin-left: 7px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 14px;
}
.cookie-modal .accept-btn {
  background: #027BCE;
  color: #FFF;
  font-weight: 600;
}
.cookie-modal .accept-btn:hover { background: #005694; }
.cookie-modal .reject-btn {
  background: #E6EAF0;
  color: #1E293B;
}
.cookie-modal .reject-btn:hover { background: #d2e5f7; }

/* ======================================================
   MISCELLANEOUS & ACCESSIBILITY
====================================================== */
::-webkit-input-placeholder { color: #7d8597; opacity: 0.92; }
::-moz-placeholder          { color: #7d8597; opacity: 0.92; }
:-ms-input-placeholder      { color: #7d8597; opacity: 0.92; }
::placeholder              { color: #7d8597; opacity: 0.92; }

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}

/* Ensure all focusable elements have clear focus rings */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible {
  outline: 2px solid #1E293B;
  outline-offset: 2px;
}

/* Prevent overlap for cards, content */
.card, .review-item, .tutorial-item, .feature-item, .testimonial-card {
  margin-right: 0;
  margin-bottom: 20px;
}

/* Prevent overlapping by providing minimum margin */
.card, .feature-item, .testimonial-card, .review-item, .tutorial-item {
  margin-bottom: 20px;
}

/* Remove absolute positioning from content cards */
/* Only .cookie-modal-content .close-modal allowed as position: absolute */
