/* ===============================================
   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,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;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8F9FA;
  color: #222;
  font-family: 'Georgia', Times, 'Times New Roman', serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul,ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: #3E7CB1;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #1A2236;
  text-decoration: underline;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
button {
  cursor: pointer;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', 'Georgia', serif;
  color: #1A2236;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1.5px;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  line-height: 1.3;
}
h3 {
  font-size: 1.4rem;
  line-height: 1.35;
}
@media (min-width: 600px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.3rem;
  }
  h3 {
    font-size: 1.7rem;
  }
}
p, li, cite {
  color: #222;
  font-family: 'Georgia', Times, 'Times New Roman', serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  margin-bottom: 1em;
}
strong {
  font-weight: 700;
  letter-spacing: 0.01em;
}
cite {
  font-style: italic;
  color: #555;
  font-size: 0.97em;
}


/* ===============================================
   LAYOUT & STRUCTURE
   =============================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgb(26 34 54 / 7%);
}
@media (max-width: 768px) {
  .section {
    padding: 25px 8px;
    margin-bottom: 38px;
  }
  .container {
    padding: 0 10px;
  }
  .content-wrapper {
    gap: 20px;
  }
}

/* ===============================================
   HEADER & NAVIGATION
   =============================================== */
header {
  background: #fff;
  border-bottom: 1px solid #e0e4ea;
  box-shadow: 0 1px 8px rgb(26 34 54 / 7%);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-size: 1.07rem;
}
.desktop-nav a {
  color: #1A2236;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.23s, color 0.23s;
}
.desktop-nav a:hover,
.desktop-nav a:focus {
  color: #3E7CB1;
  border-bottom: 2px solid #3E7CB1;
}
.cta-primary {
  background: #1A2236;
  color: #fff;
  border-radius: 30px;
  padding: 13px 36px;
  font-size: 1.06rem;
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-weight: 700;
  box-shadow: 0 3px 12px rgb(26 34 54 / 10%);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  display: inline-block;
  border: none;
  outline: none;
  margin-left: 20px;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #3E7CB1;
  color: #fff;
  box-shadow: 0 6px 18px rgb(26 34 54 / 20%);
}
@media (max-width: 1024px) {
  .desktop-nav {
    gap: 24px;
    font-size: 1rem;
  }
  .cta-primary {
    padding: 10px 24px;
    font-size: 1rem;
    margin-left: 12px;
  }
}
@media (max-width: 900px) {
  .desktop-nav {
    gap: 16px;
    font-size: 0.98rem;
  }
}
@media (max-width: 860px) {
  .desktop-nav,
  .cta-primary {
    display: none !important;
  }
}

/* Hamburger Mobile Menu */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 18px;
  background: #1A2236;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2.1rem;
  align-items: center;
  justify-content: center;
  border: none;
  z-index: 202;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #3E7CB1;
}
@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: flex;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 410px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 32px rgb(26 34 54 / 20%);
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.25, .85, .36, 1), opacity 0.18s;
  z-index: 220;
  display: flex;
  flex-direction: column;
  padding: 0 0 44px 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 14px 10px 0;
  background: #3E7CB1;
  color: #fff;
  border: none;
  border-radius: 22px;
  width: 38px;
  height: 38px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 222;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #1A2236;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 36px 30px 36px;
  margin-top: 18px;
  font-family: 'Roboto Slab', 'Georgia', serif;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #1A2236;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid #e0e4ea;
  transition: color 0.21s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #3E7CB1;
}
@media (min-width: 861px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===============================================
   MAIN SECTIONS, FEATURES, CARDS, & LAYOUTS
   =============================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 22px;
  justify-content: flex-start;
}
@media (max-width: 850px) {
  .feature-grid {
    gap: 22px;
  }
}
@media (max-width: 700px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgb(62 124 177 / 7%);
  padding: 32px 18px 26px 18px;
  min-width: 220px;
  max-width: 285px;
  flex: 1 1 220px;
  transition: box-shadow 0.25s, transform 0.22s;
  margin-bottom: 20px;
}
.feature-item img {
  width: 42px;
  height: 42px;
}
.feature-item h3 {
  font-size: 1.18rem;
  color: #1A2236;
  margin-bottom: 3px;
}
.feature-item p {
  font-size: 0.99rem;
  color: #41506b;
  margin-bottom: 0;
}
.feature-item:hover {
  box-shadow: 0 6px 28px rgb(62 124 177 / 20%);
  transform: translateY(-3px) scale(1.025);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 18px rgb(26 34 54 / 9%);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 28px;
  min-width: 220px;
  max-width: 410px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section,
  .content-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.article-tile {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgb(62 124 177 / 5%);
  padding: 28px 24px;
  min-width: 220px;
  max-width: 360px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.22s, transform 0.2s;
}
.article-tile:hover {
  box-shadow: 0 6px 24px rgb(62 124 177 / 16%);
  transform: translateY(-2px) scale(1.02);
}
.insights-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 20px;
}
.insights-slider article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgb(62 124 177 / 9%);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 345px;
  padding: 24px 18px 16px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.20s;
}
.insights-slider article:hover {
  box-shadow: 0 6px 24px rgb(62 124 177 / 17%);
}
.trending-topics {
  margin-top: 14px;
  font-size: 0.99rem;
}
.trending-topics strong {
  color: #3E7CB1;
  font-weight: 700;
}
.trending-topics ul {
  display: flex;
  gap: 16px;
  list-style: none;
  margin-top: 5px;
}
.trending-topics a {
  color: #1A2236;
  padding: 2px 8px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.trending-topics a:hover {
  background: #e0e4ea;
  color: #3E7CB1;
}

/* Trend Reports Grid (UK Market Trends) */
.trend-reports-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.trend-report {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgb(62 124 177 / 9%);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 345px;
  padding: 22px 16px 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.20s;
}
.trend-report:hover {
  box-shadow: 0 6px 22px rgb(62 124 177 / 17%);
}
.sector-breakdown,
.data-highlights {
  margin: 18px 0 14px 0;
}
.sector-breakdown ul,
.data-highlights ul {
  list-style: disc inside;
  margin-left: 18px;
}

.expert-opinions, .expert-commentary, .panel-discussions {
  background: #f3f5f8;
  border-radius: 12px;
  padding: 28px 19px 12px 19px;
  margin: 14px 0 6px 0;
  font-size: 1.02rem;
  box-shadow: 0 1px 6px rgba(26,34,54,0.06);
}
.expert-opinions strong,
.expert-commentary strong {
  color: #1A2236;
}

@media (max-width: 600px) {
  .insights-slider,
  .trending-topics ul,
  .articles-list,
  .trend-reports-grid {
    flex-direction: column;
    gap: 13px;
  }
}


/* ===============================================
   TEXT SECTIONS, LISTS, MAPS
   =============================================== */
.text-section {
  margin-bottom: 26px;
  padding: 0 0 6px 0;
}
.text-section h2, .text-section h3 {
  margin-bottom: 8px;
}
.text-section ul {
  list-style: disc inside;
  margin: 0 0 0 22px;
}
.text-section li {
  font-size: 1rem;
  margin-bottom: 7px;
}
.google-map {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.google-map img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
}

/* ===============================================
   TESTIMONIALS & CARDS
   =============================================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F8F9FA;
  border-left: 6px solid #3E7CB1;
  border-radius: 18px;
  padding: 20px 28px;
  margin-bottom: 22px;
  box-shadow: 0 2px 13px rgba(26,34,54,0.09);
  transition: box-shadow 0.22s;
}
.testimonial-card p {
  color: #1A2236;
  font-size: 1.08rem;
  margin: 0 0 0 0;
  flex: 1;
  font-style: italic;
}
.testimonial-card cite {
  font-weight: 600;
  color: #3E7CB1;
  font-size: 1rem;
  margin-top: 0;
}
.testimonial-card:hover {
  box-shadow: 0 7px 28px rgba(62,124,177,0.16);
}

@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 13px 14px;
    font-size: 1rem;
  }
}

/* ===============================================
   FOOTER
   =============================================== */
footer {
  background: #1A2236;
  color: #fff;
  padding: 50px 0 0 0;
  margin-top: 60px;
}
footer .container {
  padding-bottom: 32px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
}
footer a {
  color: #f5f5f7;
  transition: color 0.21s;
}
footer a:hover {
  color: #3E7CB1;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 1rem;
  color: #f5f5f7;
}
.footer-contact img {
  width: 20px;
  height: 20px;
}
.brand-summary {
  max-width: 350px;
}
.brand-summary img {
  width: 62px;
  height: 62px;
  margin-bottom: 9px;
}
.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}
.social-icons a img {
  width: 28px;
  height: 28px;
  filter: grayscale(0.2) brightness(0.98);
  transition: filter 0.22s;
}
.social-icons a:hover img {
  filter: grayscale(0) brightness(1.18);
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
  .brand-summary {
    max-width: 100%;
  }
}
@media (max-width: 700px) {
  footer {
    padding: 32px 0 0 0;
    margin-top: 38px;
  }
}

/* ===============================================
   FILTER SECTION, TAG CLOUD
   =============================================== */
.filter-section {
  margin: 18px 0 10px 0;
  font-size: 1rem;
  color: #1A2236;
  font-family: 'Roboto Slab', Georgia, serif;
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-section a {
  color: #3E7CB1;
  border-radius: 8px;
  padding: 2px 8px;
  transition: background 0.15s, color 0.16s;
}
.filter-section a:hover {
  background: #e0e4ea;
  color: #1A2236;
}
.tag-cloud {
  margin: 12px 0 4px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.tag-cloud span {
  display: inline-block;
  background: #f3f5f8;
  color: #3E7CB1;
  border-radius: 10px;
  padding: 4px 14px;
  font-size: 0.96rem;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 600;
}

/* ===============================================
   BUTTONS & INTERACTIVE ELEMENTS
   =============================================== */
button,
input[type="button"],
input[type="submit"] {
  font-family: 'Roboto Slab', 'Georgia', serif;
  border-radius: 30px;
  font-size: 1.04rem;
  padding: 11px 32px;
  border: none;
  background: #1A2236;
  color: #fff;
  font-weight: 600;
  transition: background 0.22s, color 0.22s, box-shadow 0.14s;
  box-shadow: 0 2px 9px rgba(26,34,54,0.12);
}
button:hover,
button:focus,
input[type="button"]:hover,
input[type="submit"]:hover {
  background: #3E7CB1;
  color: #fff;
  box-shadow: 0 6px 18px rgba(26,34,54,0.18);
}

.secondary-btn {
  background: #3E7CB1;
  color: #fff;
  border: none;
}
.secondary-btn:hover,
.secondary-btn:focus {
  background: #1A2236;
  color: #fff;
}

/* ===============================================
   COOKIE CONSENT BANNER & MODAL
   =============================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #e0e4ea;
  box-shadow: 0 -2px 18px rgba(26,34,54,0.13);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
  gap: 22px;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  animation: cookiefadein 0.7s;
}
@keyframes cookiefadein {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  margin-left: 12px;
}
.cookie-banner button {
  padding: 8px 22px;
  font-size: 1rem;
  border-radius: 18px;
  background: #3E7CB1;
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 1px 7px rgba(62,124,177,0.11);
  transition: background 0.18s, color 0.18s;
}
.cookie-banner .cookie-reject {
  background: #e6e8ec;
  color: #1A2236;
}
.cookie-banner .cookie-settings {
  background: #fff;
  color: #3E7CB1;
  border: 1px solid #3E7CB1;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #1A2236;
  color: #fff;
}
.cookie-banner .cookie-reject:hover {
  background: #c6cbd0;
  color: #1A2236;
}
.cookie-banner .cookie-settings:hover {
  background: #3E7CB1;
  color: #fff;
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,34,54,0.35);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 44px rgba(26,34,54,0.25);
  max-width: 390px;
  width: 95vw;
  padding: 38px 32px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalfadein 0.3s;
}
@keyframes modalfadein {
  from { opacity: 0; transform: translateY(60px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.cookie-modal h2 {
  font-size: 1.38rem;
  margin-bottom: 7px;
}
.cookie-modal ul {
  margin-left: 14px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.99rem;
}
.cookie-modal .toggle-switch {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: #e0e4ea;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 7px;
  transition: background 0.21s;
}
.cookie-modal .toggle-switch input {
  display: none;
}
.cookie-modal .toggle-slider {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 7px rgba(62,124,177,0.14);
  transition: left 0.16s;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  left: 18px;
  background: #3E7CB1;
}
.cookie-modal .toggle-switch input:checked {
  background: #3E7CB1;
}
.cookie-modal .essential-label {
  color: #888;
  font-style: italic;
  font-size: 0.93em;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal button {
  background: #3E7CB1;
  color: #fff;
  padding: 8px 22px;
  border-radius: 16px;
  font-size: 1rem;
  border: none;
  font-weight: 600;
  min-width: 95px;
}
.cookie-modal button:hover,
.cookie-modal button:focus {
  background: #1A2236;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 16px 7px;
  }
  .cookie-modal {
    padding: 26px 10px 16px 10px;
    max-width: 97vw;
  }
}

/* ===============================================
   RESPONSIVE & ACCESSIBILITY
   =============================================== */
@media (max-width: 1100px) {
  .feature-grid, .articles-list, .insights-slider, .trend-reports-grid, .card-container, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 700px) {
  .feature-item, .card, .article-tile, .trend-report {
    max-width: 100%;
    min-width: 140px;
    width: 100%;
    padding: 18px 10px;
  }
}
@media (max-width: 540px) {
  header .container { padding: 0 7px; }
  .footer-contact p { font-size: 0.97rem; }
}

/* ===============================================
   ANIMATIONS, MICRO-INTERACTIONS
   =============================================== */
.cta-primary, .cta-primary:visited, .cta-primary:active {
  transition: background 0.15s, box-shadow 0.18s, color 0.18s, transform 0.12s;
}
.cta-primary:active {
  transform: scale(0.96);
}
.card, .article-tile, .feature-item, .trend-report {
  transition: box-shadow 0.19s, transform 0.16s;
}
.card:hover, .article-tile:hover, .feature-item:hover, .trend-report:hover {
  box-shadow: 0 8px 32px rgba(62,124,177,0.15);
  transform: translateY(-4px) scale(1.019);
}

/* Accessibility improvements */
:focus {
  outline: 2px solid #3E7CB1;
  outline-offset: 2px;
}

/* Fallback for custom fonts (classic serif) */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Georgia'), local('Times New Roman'), serif;
}
