/* ==================================================
MOBILE PIPA TESTING WALES
JOOMLA 6 CASSIOPEIA - USER.CSS
================================================== */


/* ==================================================
GLOBAL FONT – CORPORATE / COMPLIANCE
================================================== */

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
a,
span,
button,
input,
textarea,
select {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  letter-spacing: normal;
}


/* ==================================================
GLOBAL BASE
================================================== */

html,
body {
  overflow-x: hidden;
}

body {
  color: #1f2937;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}


/* ==================================================
CASSIOPEIA HEADER
================================================== */

.container-header {
  background: #0a4ab0;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
}

.container-header .grid-child {
  max-width: 1200px;
}

.container-header .navbar-brand {
  margin: 0;
}


/* ==================================================
TOP RIGHT HEADER CTA
================================================== */

.pipa-header-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.pipa-call-btn {
  display: inline-block;
  background: #ffd400;
  color: #0a2f6f !important;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1.2;
  transition: background 0.2s ease,
              transform 0.2s ease;
}

.pipa-call-btn:hover,
.pipa-call-btn:focus {
  background: #ffcc00;
  color: #0a2f6f !important;
  transform: translateY(-1px);
}

.pipa-email-link {
  font-size: 13px;
  color: #ffffff !important;
  text-decoration: none !important;
  opacity: 0.95;
}

.pipa-email-link:hover,
.pipa-email-link:focus {
  color: #ffffff !important;
  text-decoration: underline !important;
}


/* ==================================================
CASSIOPEIA MAIN MENU
================================================== */

.container-header .mod-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  padding: 1rem 0;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .mod-menu > li.active > a {
  color: #ffd400;
}


/* ==================================================
PIPA SITE WRAPPER
================================================== */

.pipa-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  line-height: 1.65;
  color: #1f2937;
}


/* ==================================================
HERO SECTION
================================================== */

.pipa-hero {
  background: linear-gradient(135deg, #0a4ab0, #1e6fe3);
  padding: 3.25rem 0;
  color: #ffffff;
}

.pipa-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.25rem;
  align-items: center;
}

.pipa-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.pipa-hero-text {
  background: rgba(10, 25, 60, 0.55);
  padding: 1.75rem 2rem;
  border-radius: 12px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.pipa-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
}

.pipa-hero h2 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 1.1rem;
  line-height: 1.45;
  color: #eaf1ff;
}

.pipa-hero p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #f3f6ff;
}


/* ==================================================
CONTENT BLOCKS
================================================== */

.pipa-block {
  padding: 2.5rem 0;
}

.pipa-bg-white {
  background: #ffffff;
}

.pipa-bg-light {
  background: #f6f9ff;
}

.pipa-block h2 {
  font-size: 1.65rem;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #0a4ab0;
}

.pipa-block h3 {
  color: #0a4ab0;
}

.pipa-block p {
  margin-bottom: 0.9rem;
  max-width: 820px;
}


/* ==================================================
SCAN / STEP GRIDS
================================================== */

.pipa-scan,
.pipa-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.pipa-scan > div,
.pipa-steps > div {
  background: #ffffff;
  padding: 1.4rem;
  border-radius: 12px;
  border: 1px solid #e4ebf7;
  box-shadow: 0 4px 14px rgba(10, 74, 176, 0.04);
}

.pipa-scan strong,
.pipa-steps strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #0a4ab0;
}


/* ==================================================
DETAILS / ACCORDIONS
================================================== */

.pipa-wrap details {
  background: #ffffff;
  border: 1px solid #e4ebf7;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.pipa-wrap summary {
  font-weight: 600;
  cursor: pointer;
  color: #0a4ab0;
}

.pipa-wrap details p {
  margin-top: 0.75rem;
}


/* ==================================================
LISTS
================================================== */

.pipa-list {
  padding-left: 1.1rem;
}

.pipa-list li {
  margin-bottom: 0.45rem;
}


/* ==================================================
TRUST / CTA BOX
================================================== */

.pipa-trust {
  background: #f6f9ff;
  border-left: 6px solid #0a4ab0;
  padding: 1.75rem;
  border-radius: 12px;
  max-width: 720px;
}

.pipa-trust h2 {
  margin-top: 0;
}

.pipa-trust a {
  color: #0a4ab0;
  text-decoration: none;
  font-weight: 600;
}

.pipa-trust a:hover,
.pipa-trust a:focus {
  text-decoration: underline;
}


/* ==================================================
COVERAGE NOTE
================================================== */

.pipa-coverage-note {
  font-size: 0.95rem;
  color: #4b5563;
  margin-top: 1rem;
}


/* ==================================================
TOP HERO TEXT
================================================== */

.pipa-top-hero-text {
  background: rgba(8, 25, 55, 0.65);
  padding: 2rem 2.25rem;
  border-radius: 14px;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.pipa-top-hero-text h2 {
  color: #ffffff !important;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.pipa-top-hero-text p {
  color: #f1f5ff !important;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}


/* ==================================================
HERO BUTTON
================================================== */

.pipa-hero-btn {
  display: inline-block;
  background: #ffd400;
  color: #0a2f6f !important;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease,
              transform 0.2s ease;
}

.pipa-hero-btn:hover,
.pipa-hero-btn:focus {
  background: #ffcc00;
  color: #0a2f6f !important;
  transform: translateY(-1px);
}


/* ==================================================
CASSIOPEIA ARTICLE CLEANUP
================================================== */

.com-content-article__body {
  overflow: visible;
}

main .blog-item,
main .item-page {
  box-shadow: none;
}

main .card {
  border-radius: 12px;
}


/* ==================================================
TABLES
================================================== */

.pipa-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.pipa-wrap th,
.pipa-wrap td {
  padding: 0.85rem 1rem;
  border: 1px solid #dfe7f3;
  text-align: left;
}

.pipa-wrap th {
  background: #0a4ab0;
  color: #ffffff;
}


/* ==================================================
MOBILE
================================================== */

@media (max-width: 900px) {

  .pipa-hero-inner {
    grid-template-columns: 1fr;
  }

  .pipa-hero {
    padding: 2.5rem 0;
  }

  .pipa-hero-text {
    padding: 1.5rem;
  }

  .container-header .mod-menu {
    gap: 0;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > span {
    white-space: normal;
  }
}


@media (max-width: 768px) {

  .pipa-block {
    padding: 2rem 0;
  }

  .pipa-header-cta {
    align-items: center;
    text-align: center;
    margin-top: 6px;
  }

  .pipa-top-hero-text {
    padding: 1.5rem 1.25rem;
    border-radius: 10px;
  }

  .pipa-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pipa-scan,
  .pipa-steps {
    grid-template-columns: 1fr;
  }
}


/* ==================================================
SMALL MOBILE
================================================== */

@media (max-width: 480px) {

  .pipa-hero {
    padding: 2rem 0;
  }

  .pipa-hero h1 {
    font-size: 2rem;
  }

  .pipa-hero-text {
    padding: 1.25rem;
  }

  .pipa-call-btn {
    font-size: 13px;
    padding: 7px 12px;
  }
}