/* ================= ROOT VARIABLES ================= */
:root {
  --primary: #007BFF;
  --primary-dark: #0056b3;
  --accent: #00B5FF;

  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;

  --bg: #ffffff;
  --bg-soft: #f8fbff;

  --shadow: 0 20px 50px rgba(2, 8, 23, 0.08);
}

/* ================= GLOBAL ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section { padding: 30px 0; }
.section.alt { background: var(--bg-soft); }
.section.alt {
  background: linear-gradient(
    to bottom,
    rgba(2, 20, 40, 0.04),
    rgba(197, 202, 208, 0.6)
  );
}
.section-divider {
  height: 15px;
  background: linear-gradient(
    to bottom,
    rgba(2, 29, 58, 0.06),
    rgba(8, 2, 18, 0)
  );
}


.section-sub {
  text-align: center;
  max-width: 680px;
  margin: 12px auto 44px auto;
  color: var(--text-muted);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s ease;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* =========================================================
   BUTTONS Old
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  margin: 0.30rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--primary);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(0,0,255,0.25);
}

.btn--outline {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--outline:hover {
  background: rgba(0,0,255,0.06);
}

/* ================= HEADER / NAV ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  position: relative;
}

.logo img {
  height: 38px;
  width: auto;
  transition: height 0.3s ease;
}
@media (max-width: 992px) {

  .logo img {
    height: 24px;}

 .nav {
    height: 48px;}
  }

/* ================= BURGER ================= */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Overlay (mobile only) */
.nav-overlay {
  display: none;
}

/* Desktop nav layout */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover { color: var(--primary); }

/* CTA link */
.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--primary-dark); }

/* Mega menu desktop */
.has-mega { position: relative; }

/* Hover bridge to prevent flicker */
.has-mega::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 20px;
}

.nav-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.nav-trigger:hover { color: var(--primary); }

.chevron {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: 0.25s ease;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  min-width: 460px;
  background: #fff;
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px;
  display: none;
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.mega-grid h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 14px;
}
.mega-grid a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-dark);
  text-decoration: none;
}
.mega-grid a:hover { color: var(--primary); }

/* Desktop hover open */
@media (min-width: 992px) {
  .has-mega:hover > .mega-menu,
  .has-mega:focus-within > .mega-menu {
    display: block;
  }

}

/* Mobile panel top bar (hidden on desktop) */
.nav-mobile-top {
  display: none;
}


/* ================= MOBILE NAV ================= */
@media (max-width: 992px) {
  .burger { display: inline-flex; }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 23, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 1900;
  }
  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

 /* Nav becomes slide-in panel */
.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(340px, 92vw);
  background: #fff;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 18px 18px 24px 18px;
  box-shadow: -18px 0 50px rgba(2,8,23,0.18);

  /* Modern slide method */
  transform: translateX(100%);
  transition: transform 0.28s ease;

  overflow-y: auto;
  z-index: 1950;
}

.nav-links.active {
  transform: translateX(0);
}

  .nav-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 2px 14px 2px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 6px;
  }
  .nav-mobile-title {
    font-weight: 800;
    color: var(--text-dark);
  }
  .nav-close {
    border: 1px solid var(--border-light);
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
  }

  .nav-link,
  .nav-links > a {
    padding: 12px 12px;
    border-radius: 12px;
  }
  .nav-links > a:hover { background: rgba(0,123,255,0.06); }

  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
  }

  /* Mobile accordion submenu */
  .mega-menu {
    position: static;
    min-width: unset;
    border: none;
    box-shadow: none;
    padding: 0 0 0 8px;
    display: block;         /* always in flow */
    height: 0;              /* collapsed */
    overflow: hidden;
    transition: height 0.28s ease;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 10px 0 6px 0;
  }

  .has-mega.active .chevron {
    transform: rotate(-135deg);
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.nav-main {
  flex: 1;
}

/* ================= HERO CENTERED ================= */

.hero-centered {
  position: relative;
  padding: 40px 0 40px 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    rgba(0,123,255,0.08),
    rgba(255,255,255,0));
}

.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.trust-line {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Mobile optimisation */
@media (max-width: 768px) {

  .hero-centered {
    padding: 25px 0 25px 0;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 14px;
  }

}
/* =========================================================
   HERO – VIDEO
========================================================= */

.hero--video {
  position: relative;
  height: 65vh;
  min-height: 420px;
  background: #000;
}

.hero--video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--video .hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem;
}

/* =========================================================
   HERO – CONTENT
========================================================= */

.hero--content {
  padding: 3rem 0;
}

.hero--content .hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero__visual img {
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero--content .hero__inner {
    grid-template-columns: 1fr;
  }
}


/* ================= GRID / CARDS ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.card {
  background: #f8e6e6;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(2,8,23,0.05);
}
/* =========================================================
   GRID SYSTEM
========================================================= */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
}


/* ================= IMAGE OVERLAY CARD ================= */
.image-card {
  position: relative;
  display: block;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.image-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.45s ease;
}
.image-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  color: #fff;
  background: linear-gradient(to top, rgba(2,8,23,0.85), rgba(2,8,23,0));
}
.image-card:hover img { transform: scale(1.08); }

/* ================= CAROUSEL ================= */
.carousel { position: relative; overflow: hidden; margin-top: 34px; }
.carousel-track { display: flex; transition: transform 0.45s ease; }
.carousel-item { min-width: 33.333%; padding: 12px; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  z-index: 10;
}
.carousel-btn.prev { left: 6px; }
.carousel-btn.next { right: 6px; }
.carousel-btn:hover { background: var(--primary); color: #fff; }

@media (max-width: 1024px) { .carousel-item { min-width: 50%; } }
@media (max-width: 768px)  { .carousel-item { min-width: 100%; } }

/* ================= FOOTER ================= */
.footer {
  background: #060B1A;
  color: #94A3B8;
  padding: 80px 0 30px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
}

.footer h3, .footer h4 { color: white; margin-bottom: 14px; }
.footer a { color: #94A3B8; text-decoration: none; display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--accent); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 40px 0;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #64748B;
}
/* ================= FOOTER SOCIAL ================= */

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  transition: all 0.25s ease;
}

.footer-social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Hover effect */
.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}
.trust-line {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
}
.affiliate-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 30px;
}
.card {
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(2,8,23,0.08);
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ================= COOKIE BANNER ================= */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1100px;
  background: #0f172a;
  color: white;
  padding: 18px 24px;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  z-index: 3000;
  transition: all 0.4s ease;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-inner p {
  font-size: 14px;
  margin: 0;
}

.cookie-inner a {
  color: var(--accent);
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

/* Hidden state */
.cookie-banner.hidden {
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
}
/* =========================================================
   LAYOUT From the old 
========================================================= */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 1rem 0;
}

.section--light {
  background: var(--bg-alt);
}

.section__header {
  text-align: center;
  margin-bottom: 2rem;
}

.section__title {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.section__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}
.cta__title {
    text-align: center;

}
.centered-image {
  display: block;
  margin: 20px auto;
  max-width: 100%;
}
a {
  text-decoration: none;
}
.portfolio-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  transition: transform 0.2s ease;
}

.portfolio-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin-bottom: 1rem;
}

.portfolio-logo img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
}

.portfolio-link {
  margin-top: auto;
  font-weight: 500;
}
/* ================= TESTIMONIALS PREMIUM ================= */

.testimonial-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  padding: 50px 40px;
  border-radius: 24px;
  border: 1px solid rgba(0, 123, 255, 0.08);
  box-shadow: 0 30px 80px rgba(2, 8, 23, 0.06);
  text-align: center;
  transition: 0.35s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 90px rgba(2, 8, 23, 0.08);
}

/* Quote Icon */
.testimonial-card::before {
  content: "“";
  font-size: 70px;
  font-weight: bold;
  color: rgba(0, 123, 255, 0.15);
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

/* Text */
.testimonial-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
  font-weight: 400;
  margin-bottom: 40px;
  margin-top: 30px;
}

/* Author */
.testimonial-author {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.testimonial-author strong {
  display: block;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.section.alt {
  background: linear-gradient(
    180deg,
    rgba(0,123,255,0.05),
    rgba(255,255,255,0.7)
  );
}
.carousel-item {
  transition: opacity 0.4s ease;
}
@media (max-width: 768px) {

  .testimonial-card {
    padding: 40px 25px;
  }

  .testimonial-text {
    font-size: 16px;
  }

}
/* ================= COMPARE PAGE ENHANCEMENTS ================= */

.hero-compare .hero-content { max-width: 980px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,123,255,0.10);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  margin: 0 auto 18px auto;
  width: fit-content;
}

.hero-badge__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(0,123,255,0.15);
}

.hero-quick {
  margin: 26px auto 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 920px;
}

.hero-quick__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(6, 62, 137, 0.9);
  background: rgba(237, 219, 219, 0.65);
  backdrop-filter: blur(10px);
}

.icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,123,255,0.10);
  color: var(--primary);
}

.muted { color: var(--text-muted); font-size: 13px; margin-top: 2px; }

.postcode-panel {
  margin: 28px auto 0 auto;
  max-width: 820px;
  text-align: left;
  padding: 18px 18px;
  border-radius: 18px;
  border: 2px solid rgba(152, 174, 202, 0.9);
  background: rgba(240, 236, 236, 0.72);
  backdrop-filter: blur(12px);
}
.postcode-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px; /* space between input and button */
}

.postcode-label { font-weight: 700; display: block; margin-bottom: 8px; }
.postcode-help { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.section-sub.left { text-align: left; margin-left: 0; }

.results-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.results-chip {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(41, 59, 79, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.btn-sm { padding: 10px 14px; border-radius: 10px; font-size: 13px; }

/* Provider tiles */
.providers-grid { margin-top: 14px; }

.provider-tile {
  text-align: left;
  border-radius: 18px;
  padding: 18px 18px;
  border: 2px solid var(--border-light);
  background: rgb(252, 245, 245);
  cursor: pointer;
  transition: 0.28s ease;
  box-shadow: 0 18px 45px rgba(2,8,23,0.05);
}

.provider-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(0,123,255,0.35);
  box-shadow: 0 28px 65px rgba(2,8,23,0.08);
}

.provider-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.provider-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(0,123,255,0.10);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.provider-name { font-weight: 800; font-size: 16px; flex: 1; }

.provider-desc { color: var(--text-muted); margin-top: 10px; font-size: 14px; }
.provider-cta { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--primary); }

/* Best-for tags */
.provider-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  background: rgba(190, 14, 111, 0.1);
  color: var(--primary);
}

.best-speed { background: rgba(255,165,0,0.16); color: #b45309; }
.best-business { background: rgba(0,123,255,0.14); color: #0b63d1; }
.best-community { background: rgba(34,197,94,0.14); color: #15803d; }
.best-value { background: rgba(139,92,246,0.14); color: #6d28d9; }
.best-fibre { background: rgba(14,165,233,0.14); color: #0369a1; }

/* Table fineprint */
.fineprint {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Postcode pill in header */
.postcode-pill {
  display: none;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(84, 125, 168, 0.1);
  border: 2px solid rgba(194, 130, 172, 0.18);
  padding: 8px 12px;
  border-radius: 999px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-quick { grid-template-columns: 1fr; }
  .postcode-panel { text-align: left; }
}

@media (max-width: 992px) {
  .postcode-pill { display: inline-flex; }
}
.best-comparison {
  background: rgba(251,191,36,0.18);
  color: #b45309;
}
/* Toggle content panels */
.toggle-panel {
  display: none;
  max-width: 720px;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.toggle-panel.active {
  display: block;
}
.table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-main);
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: middle;
  font-size: 0.9rem;
}

.comparison-table th {
  font-weight: 600;
}
/* ================= PROVIDER HUB CARDS ================= */

.provider-hub-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(2,8,23,0.05);
  transition: 0.3s ease;
}

.provider-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(2,8,23,0.08);
}

.provider-hub-card h3 {
  margin-bottom: 12px;
}

.provider-hub-card ul {
  margin: 15px 0;
  padding-left: 18px;
}

.hub-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.hub-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
/* =========================================================
   HERO – CONTENT
========================================================= */

.hero--content {
  padding: 3rem 0;
}

.hero--content .hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero__visual img {
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero--content .hero__inner {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   HERO – IMAGE BANNER
========================================================= */

.hero--image {
  position: relative;
  height: 55vh;
  min-height: 360px;
  background: #000;
}

.hero--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--image .hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem;
}
.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero--image {
    height: 40vh;
  }
}
/* ================= PREMIUM PROVIDER HUB ================= */

.authority-block {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  padding: 40px;
  border-radius: 22px;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 60px rgba(2,8,23,0.05);
}

.provider-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.provider-premium {
  background: white;
  padding: 35px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 70px rgba(2,8,23,0.05);
  transition: 0.35s ease;
}

.provider-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 90px rgba(2,8,23,0.08);
}

.provider-premium__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.provider-icon-soft {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(0,123,255,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.provider-premium ul {
  margin: 18px 0;
  padding-left: 18px;
}

.provider-premium__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
}

.provider-read {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.provider-premium {
  position: relative;
  overflow: hidden;
}

.provider-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(
    circle at top left,
    rgba(0,123,255,0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.provider-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 90px rgba(2,8,23,0.08);
}

.provider-premium:hover::after {
  opacity: 1;
}
.provider-read {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  position: relative;
  transition: 0.3s ease;
}

.provider-read::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.provider-read:hover::after {
  transform: translateX(6px);
}

/* ================= FLOATING BACKGROUND SHAPES ================= */

.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-shapes span {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,123,255,0.06);
  animation: floatShape 18s infinite linear;
}

.floating-shapes span:nth-child(1) {
  width: 220px;
  height: 220px;
  top: 10%;
  left: 5%;
}

.floating-shapes span:nth-child(2) {
  width: 180px;
  height: 180px;
  bottom: 15%;
  right: 10%;
  animation-delay: 6s;
}

.floating-shapes span:nth-child(3) {
  width: 140px;
  height: 140px;
  top: 50%;
  left: 60%;
  animation-delay: 10s;
}

@keyframes floatShape {
  0% { transform: translateY(0px) }
  50% { transform: translateY(-30px) }
  100% { transform: translateY(0px) }
}
.provider-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.provider-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,123,255,0.08);
  color: var(--primary);
  font-size: 13px;
  text-decoration: none;
  transition: 0.3s;
}

.provider-nav a:hover {
  background: var(--primary);
  color: white;
}
.provider-nav a.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 20px rgba(0,123,255,0.25);
}
/* Mobile horizontal scroll */
@media (max-width: 992px) {
  .provider-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .provider-nav::-webkit-scrollbar {
    display: none;
  }

  .provider-nav a {
    flex: 0 0 auto;
  }
}
/* ================= STICKY CTA ================= */

.sticky-compare {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border-radius: 12px;
}

@media (max-width: 768px) {
  .sticky-compare {
    bottom: 15px;
    right: 15px;
  }
}
.provider-premium {
  scroll-margin-top: 120px;
}
/* ================= ACTIVE PROVIDER NAV ================= */

.provider-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,123,255,0.08);
  color: var(--primary);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.provider-nav a:hover {
  background: var(--primary);
  color: white;
}

.provider-nav a.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 20px rgba(0,123,255,0.25);
}
/* ================= BLOG HUB ================= */

.blog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.blog-toolbar__right { width: 100%; max-width: 420px; }

.blog-search {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,0.7);
  border: 3px solid var(--border-light);
  border-radius: 14px;
  padding: 5px;
  backdrop-filter: blur(12px);
}

.blog-search input {
  width: 100%;
  border: none;
  outline: none;
  padding: 10px 10px;
  font-size: 14px;
  background: transparent;
  color: var(--text-dark);
}

.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.filter-chip {
  border: 1px solid rgba(0,123,255,0.18);
  background: rgba(0,123,255,0.08);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: 0.25s ease;
}

.filter-chip:hover {
  background: rgba(0,123,255,0.14);
}

.filter-chip.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0,123,255,0.25);
}

.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,0.9);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(2,8,23,0.06);
}

.featured-post__media { min-height: 320px; }
.blog-cover-svg { width: 100%; height: 100%; display: block; }

.featured-post__content {
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-title { font-size: 22px; line-height: 1.25; margin: 12px 0 10px 0; }
.featured-excerpt { color: var(--text-muted); margin: 0 0 18px 0; }

.featured-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

.post-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.post-pill {
  background: rgba(0,123,255,0.12);
  color: var(--primary);
  border: 1px solid rgba(0,123,255,0.18);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}

.post-tag {
  background: var(--primary);
  color: white;
  border: 1px solid rgba(0,123,255,0.16);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}

.post-date, .post-readtime {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(14, 59, 118, 0.9);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(2,8,23,0.05);
  transition: 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 90px rgba(2,8,23,0.08);
  border-color: rgba(0,123,255,0.25);
}

.blog-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card__media {
  height: 160px;
  background: rgba(0,123,255,0.04);
}

.blog-card__body {
  padding: 18px 18px 20px 18px;
}

.blog-card__title {
  font-size: 16px;
  line-height: 1.35;
  margin: 10px 0 10px 0;
  color: var(--text-dark);
}

.blog-card__excerpt {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 14px 0;
}

.blog-card__cta {
  font-weight: 900;
  color: var(--primary);
}

.blog-empty {
  text-align: center;
  padding: 50px 20px;
  border-radius: 22px;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(2,8,23,0.05);
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-post { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .featured-post__content { padding: 26px 18px; }
}

/* ================= BLOG IMAGE MEDIA ================= */

.blog-card__media {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.5s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.06);
}

/* ================= BLOG IMAGE MEDIA ================= */

.blog-card__media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.08);
}

/* ================= RELATED ARTICLES ================= */

.related-section {
  padding: 15px 0;
  background: linear-gradient(
    180deg,
    rgba(105, 114, 123, 0.03) 0%,
    #615f5f 100%
  );
}

.related-title {
  text-align: center;
  margin-bottom: 10px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.related-card {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(2,8,23,0.05);
  transition: 0.3s ease;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 80px rgba(2,8,23,0.08);
}

.related-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px;
}

.related-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.related-card p {
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; }
}
/* ================= RELATED ARTICLES ================= */

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.related-card {
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--border-light);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(2,8,23,0.05);
  transition: 0.35s ease;
}

.related-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 90px rgba(2,8,23,0.08);
}

.related-thumb {
  height: 80px;
  background: linear-gradient(135deg,#007BFF,#00B5FF);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.related-card-content {
  padding: 10px;
}

.related-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,123,255,0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.related-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.related-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ================= ARTICLE NAVIGATION ================= */

.article-navigation {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.article-navigation a {
  flex: 1;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background: white;
  text-decoration: none;
  color: var(--text-dark);
  transition: 0.3s ease;
}

.article-navigation a:hover {
  background: var(--background-light);
  transform: translateY(-5px);
}

/* ================= SCROLL REVEAL ================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(.77,0,.18,1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; }
  .article-navigation { flex-direction: column; }
}
/* ================= PORTFOLIO ================= */

.portfolio-filter {
  text-align: center;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: white;
  margin: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.portfolio-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 250px;
  text-decoration: none;
  box-shadow: 0 20px 60px rgba(2,8,23,0.08);
  transition: 0.4s ease;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 90px rgba(2,8,23,0.12);
}

.portfolio-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: 0.5s;
}

.portfolio-card:hover .portfolio-thumb {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  padding: 20px;
  width: 100%;

  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: white;
}

.portfolio-badge {
  display: inline-block;
  background: rgb(0, 123, 255);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 10px;
}

@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
/* ================= CAREERS ================= */

.career-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 60px rgba(2,8,23,0.05);
  margin-bottom: 30px;
  transition: 0.3s ease;
}

.career-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 80px rgba(2,8,23,0.08);
}

.career-card h3 {
  margin-bottom: 15px;
}
.card.reveal {
  transition: transform .35s ease, box-shadow .35s ease;
}
.card.reveal:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 80px rgba(2,8,23,0.08);
}
/* ================= CONTACT ================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-block {
  margin-bottom: 25px;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 60px rgba(2,8,23,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-note {
  font-size: 12px;
  margin-top: 15px;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.fineprint {
  font-size: 13px;
  color: var(--text-muted);
}
/* =========================================================
   FORMS
========================================================= */

.form {
  max-width: 520px;
}

.form__field {
  margin-bottom: 1rem;
}

.form__label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form__input,
.form__textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  font-family: inherit;
  font-size: 0.95rem;
}

.form__textarea {
  min-height: 130px;
  resize: vertical;
}

.form__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ================= PRICING =================*/

.pricing-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
margin-top: 40px;
}

.pricing-card {
background: white;
padding: 35px;
border-radius: 20px;
border: 1px solid var(--border-light);
box-shadow: 0 20px 60px rgba(2,8,23,0.05);
transition: 0.3s ease;
text-align: center;
}

.pricing-card:hover {
transform: translateY(-8px);
box-shadow: 0 35px 80px rgba(2,8,23,0.1);
}

.pricing-card .price {
font-size: 22px;
font-weight: 700;
margin: 15px 0 20px 0;
color: var(--primary);
}

.pricing-card ul {
text-align: left;
margin-bottom: 20px;
}

.pricing-card.featured {
border: 2px solid var(--primary);
}

/* ================= PORTFOLIO GRID ================= */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.portfolio-card {
  display: block;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 60px rgba(2,8,23,0.05);
  transition: 0.4s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(2,8,23,0.1);
}

.portfolio-thumb {
  height: 220px;
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-body {
  padding: 25px;
}

.portfolio-link {
  font-weight: 600;
  color: var(--primary);
}
/* Prevent horizontal scroll globally */
html, body {
  overflow-x: hidden;
}

/* Lock background when nav open */
body.nav-open {
  overflow: hidden;
  height: 100vh;
}

/* Mobile nav panel fix */
@media (max-width: 992px) {

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: #ffffff;

    /* IMPORTANT: use transform instead of right shifting */
    transform: translateX(100%);
    transition: transform 0.35s ease;

    overflow-y: auto;
    z-index: 1001;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 1000;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}
/* Prevent background layers blocking clicks */

.hero-net,
.floating-shapes,
.floating-shapes span {
  pointer-events: none;
}

/* Ensure provider cards sit above effects */

.provider-grid-premium {
  position: relative;
  z-index: 5;
}

.provider-premium {
  position: relative;
  z-index: 10;
}
.provider-premium a {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}