/* deploy-test-2026-07-06 */
/* Additional professional enhancements loaded after main child styles.
   These implement the homepage concept and page packs with NHS-style clarity.
   All colors, spacing, and components are designed to be calm, trustworthy, and editable.
*/

/* Homepage Hero - Matches exact content from Homepage Content Pack V2 */
.vanus-home .vanus-hero {
    padding: 100px 0 80px;
}

.vanus-home .vanus-hero .vanus-cta-buttons .wp-block-button {
    margin-right: 12px;
    margin-bottom: 12px;
}

/* Make the contact button (and adjacent) about half the height.
   User: shorter, half the height. Keep horizontal length/width the same (24px sides).
   Use very tight padding + compact line-height. */
.vanus-hero .wp-block-button__link[href*="/contact"],
.vanus-hero .button-secondary {
    padding: 4px 24px !important;
    line-height: 1.15 !important;
}

/* Positioning Cards (Clinician-led / NHS-focused / Governance-led) */
.vanus-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.vanus-card {
    border-left: 5px solid var(--vanus-teal);
}

.vanus-card h3 {
    color: var(--vanus-blue);
    margin-top: 0;
}

/* Insourcing Model - 5 Steps (exact from inventory) */
.vanus-insourcing-model {
    margin: 48px 0;
}

.vanus-step {
    background: var(--vanus-light-gray);
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 16px;
    position: relative;
}

.vanus-step h3 {
    margin: 0 0 8px;
    color: var(--vanus-blue);
}

.vanus-step .step-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--vanus-teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Governance / Why Choose / Regulatory sections - card based for scannability */
.vanus-governance-grid,
.vanus-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.vanus-governance-card {
    padding: 20px;
    border-top: 4px solid var(--vanus-blue);
}

.vanus-governance-card h4 {
    margin-top: 0;
    color: var(--vanus-dark);
}

/* Old org styles removed - replaced with improved structure below */

/* Contact page & CTAs */
.vanus-enquiry-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.vanus-enquiry-card {
    border: 1px solid #E5E7EB;
    padding: 18px;
    border-radius: 6px;
    transition: all 0.2s;
}

.vanus-enquiry-card:hover {
    border-color: var(--vanus-teal);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.vanus-enquiry-card h4 {
    margin: 0 0 8px;
    color: var(--vanus-blue);
}

/* Legal / Compliance pages - readable, trustworthy */
.vanus-legal-page h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--vanus-teal);
    padding-bottom: 8px;
}

.vanus-legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.vanus-legal-page table th,
.vanus-legal-page table td {
    padding: 10px 12px;
    border: 1px solid #D1D5DB;
    text-align: left;
    vertical-align: top;
}

.vanus-legal-page table th {
    background: var(--vanus-light-gray);
    font-weight: 600;
}

/* Accessibility & mobile refinements (WCAG AA focus) */
@media (max-width: 640px) {
    .vanus-hero h1 {
        font-size: 2.1rem;
    }
    .vanus-cards,
    .vanus-governance-grid {
        grid-template-columns: 1fr;
    }
}

/* High contrast focus for professional accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--vanus-teal);
    outline-offset: 3px;
}

/* Subtle print styles for capability statement downloads (future) */
@media print {
    .site-header, .site-footer, .vanus-cta-strip, nav {
        display: none !important;
    }
    .vanus-section {
        padding: 20px 0;
        break-inside: avoid;
    }
}
/* Icon circles for service cards, steps, governance, enquiry (to match the mockup design with colored circles) */
.service-card .icon-circle,
.step .icon-circle,
.gov-card .icon-circle,
.enquiry-card .icon-circle {
  width: 48px;
  height: 48px;
  background: #005EB8;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Some cards use green accent for NHS-focused or positive */
.service-card:nth-child(2) .icon-circle,
.gov-card:nth-child(2) .icon-circle {
  background: #00A9CE;
}

/* Card styles to match the mockup (light background, border, padding, title bold, small bullets) */
.service-card, .gov-card, .enquiry-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.service-card:hover, .gov-card:hover, .enquiry-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.service-card h3, .gov-card h3, .enquiry-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 8px 0;
  color: #1a1a2e;
}

.service-card ul, .gov-card ul {
  font-size: 0.8rem;
  color: #4b5563;
  text-align: left;
  padding-left: 20px;
  margin: 8px 0 0;
}

.service-card ul li, .gov-card ul li {
  margin-bottom: 4px;
}

/* 3 top feature boxes */
.feature-boxes {
  display: flex;
  gap: 20px;
  margin: 40px 0;
}
.feature-box {
  flex: 1;
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-height: 120px;
}
.feature-box .icon-circle {
  width: 36px;
  height: 36px;
  background: #005EB8;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.feature-box:nth-child(2) .icon-circle {
  background: #00A9CE;
}
.feature-box h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: #1a1a2e;
  white-space: nowrap;
}
.feature-box p {
  font-size: 0.8rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.3;
}

/* Stack the heading and description text vertically beside the icon */
.feature-box .feature-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Make sure icon aligns to the top of the stacked text */
.feature-box {
  align-items: flex-start;
}

/* Steps for insourcing model to match the horizontal flow in mockup */
.insourcing-steps {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 12px;
}

.step .icon-circle {
  width: 40px;
  height: 40px;
  background: #005EB8;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto 8px;
}

.step h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 4px 0;
}

.step p {
  font-size: 0.75rem;
  color: #4b5563;
  margin: 0;
}

/* Add flow arrows between insourcing steps (makes it more of a visible flowchart) */
.insourcing-steps .step:not(:last-child) {
  position: relative;
}
.insourcing-steps .step:not(:last-child)::after {
  content: '\f061'; /* Font Awesome right arrow */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: -12px;
  top: 38%;
  color: var(--vanus-teal);
  font-size: 1rem;
  opacity: 0.7;
}
@media (max-width: 768px) {
  .insourcing-steps .step:not(:last-child)::after {
    display: none; /* stack on mobile, no arrows needed */
  }
}

/* Why choose list with green checks to match mockup */
.why-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.why-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #10b981;
}

/* (duplicate enquiry styles cleaned up - main version is later) */


/* Enhanced layout for Home sections to match the mockup image exactly (positions, spacing, alignment) */
/* Hero: text left, image right with subtle green arc effect */
.vanus-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
}
.vanus-hero .hero-text {
  flex: 1;
}
.vanus-hero .hero-image {
  flex: 1;
  max-width: 50%;
  position: relative;
}
.vanus-hero .hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  display: block;
}
/* Subtle green arc behind hero image to match mockup */
.vanus-hero .hero-image::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -15%;
  width: 70%;
  height: 100%;
  background: linear-gradient(135deg, #00A9CE 20%, transparent 60%);
  border-radius: 40% 60% 60% 40%;
  z-index: -1;
  opacity: 0.2;
}

/* (feature frame CSS removed for revert to pre-card changes) */

/* 6 service cards in 3x2 grid, equal height, icon centered above, title bold, bullets small left */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.service-card .icon-circle {
  width: 42px;
  height: 42px;
  background: #005EB8;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.service-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #1a1a2e;
}
.service-card ul {
  font-size: 0.75rem;
  color: #4b5563;
  margin: 0;
  padding-left: 16px;
  line-height: 1.25;
  flex-grow: 1;
}
.service-card ul li {
  margin-bottom: 2px;
}

/* 5 steps horizontal flow like mockup, with visual separation */
.insourcing-steps {
  display: flex;
  gap: 12px;
  margin: 32px 0;
  align-items: stretch;
}
.step {
  flex: 1;
  background: #f4f5f7;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  position: relative;
  min-height: 120px;
}
.step .icon-circle {
  width: 38px;
  height: 38px;
  background: #005EB8;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto 6px;
}
.step h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 4px 0;
}
.step p {
  font-size: 0.7rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.2;
}
/* Arrow between steps */
.step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -8px;
  top: 30%;
  font-size: 1.2rem;
  color: #005EB8;
  font-weight: bold;
}

/* 4 governance boxes in a row */
.gov-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.gov-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  min-height: 110px;
}
.gov-card .icon-circle {
  width: 36px;
  height: 36px;
  background: #005EB8;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin: 0 auto 6px;
}
.gov-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 4px 0;
}
.gov-card p {
  font-size: 0.7rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.2;
}

/* Bottom enquiry strip with 4 cards in a row */
/* Consolidated enquiry strip styles - see later in file for current version */

/* Wider variant of .gov-grid for longer role descriptions (Governance Programme Leads detail) */
.gov-grid-wide {
  grid-template-columns: repeat(3, 1fr);
}
.gov-grid-wide .gov-card {
  text-align: left;
  min-height: auto;
}
.gov-grid-wide .gov-card .icon-circle {
  margin: 0 0 6px;
}

/* Responsive for all */
@media (max-width: 900px) {
  .gov-grid-wide {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .feature-boxes, .service-cards, .insourcing-steps, .gov-grid, .enquiry-strip {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .vanus-hero {
    flex-direction: column;
  }
  .vanus-hero .hero-image {
    max-width: 100%;
  }
}

/* Enquiry strip on desktop: horizontal line of 4 clickable cards */
.enquiry-strip {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: stretch;
  background: #1a1a2e;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  margin: 32px 0;
}

.enquiry-strip .enquiry-card {
  flex: 1;
  min-width: 0;
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ============================================
   BEAUTIFIED HEADINGS - match NHS theme / mockup
   ============================================ */
.entry-content h2,
.vanus-home h2,
h2 {
  color: var(--vanus-blue);
  font-size: 1.55rem;
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
  position: relative;
}
.entry-content h2:after,
.vanus-home h2:after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--vanus-teal);
  margin-top: 6px;
  border-radius: 2px;
}

.entry-content h3,
h3 {
  color: var(--vanus-dark);
  font-size: 1.1rem;
}

.entry-content h4,
h4 {
  color: #1f3a5f;
  font-size: 0.95rem;
}

/* ============================================
   VISUAL ORG CHART / STRUCTURE for Leadership
   Clear hierarchical tree with visible connecting lines
   ============================================ */
.vanus-org-chart {
  max-width: 860px;
  margin: 28px auto;
  text-align: center;
}

.vanus-org-chart .org-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  position: relative;
  margin-bottom: 0;
}

.vanus-org-chart .org-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}

.vanus-org-chart .org-box {
  background: #fff;
  border: 2px solid var(--vanus-blue);
  color: var(--vanus-dark);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.25;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  text-align: center;
  width: 100%;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vanus-org-chart .org-box.board {
  background: var(--vanus-blue);
  color: #fff;
  border-color: var(--vanus-blue);
  font-weight: 600;
}

.vanus-org-chart .org-box.staff {
  background: #e6f4ff;
  border-color: var(--vanus-teal);
}

.vanus-org-chart .org-box strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.1;
}

.vanus-org-chart .role-desc {
  display: block;
  font-size: 0.68rem;
  opacity: 0.9;
  margin-top: 2px;
  color: inherit;
}

/* Clear structure lines */
.vanus-org-chart .org-vline {
  width: 3px;
  height: 16px;
  background: linear-gradient(var(--vanus-teal), var(--vanus-blue));
  margin: 2px auto;
  border-radius: 1px;
}
.vanus-org-chart .org-vline.small {
  height: 10px;
}

.vanus-org-chart .org-hline {
  height: 3px;
  background: var(--vanus-teal);
  width: 65%;
  margin: 0 auto 2px;
  border-radius: 1px;
}

/* ============================================
   SITE FOOTER - real content from inventory + mockup
   ============================================ */
.vanus-footer {
  background: #003087; /* Deep NHS blue matching professional theme */
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.5;
  padding-top: 32px;
  margin-top: 40px;
}

.vanus-footer a {
  color: #a5d8ff;
  text-decoration: none;
}
.vanus-footer a:hover {
  color: var(--vanus-teal);
  text-decoration: underline;
}

.vanus-footer .footer-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 28px;
}

.vanus-footer .footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 4px;
}

.vanus-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vanus-footer .footer-col ul li {
  margin-bottom: 5px;
}

.vanus-footer .footer-brand .logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}
.vanus-footer .footer-brand .tagline {
  font-size: 0.75rem;
  color: #a5d8ff;
  margin-bottom: 8px;
}
.vanus-footer .footer-brand p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin: 6px 0 0;
}

.vanus-footer .footer-bottom {
  background: #00205b;
  padding: 14px 20px;
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255,255,255,0.75);
}
.vanus-footer .footer-bottom .legal-links {
  margin-top: 6px;
}
.vanus-footer .footer-bottom .legal-links a {
  margin: 0 8px;
  color: rgba(255,255,255,0.7);
}
.vanus-footer .footer-bottom .legal-links a:hover {
  color: #fff;
}

/* Responsive footer + org */
@media (max-width: 900px) {
  .vanus-footer .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .vanus-org-chart .org-box {
    min-width: 140px;
    font-size: 0.78rem;
  }
}
@media (max-width: 600px) {
  .vanus-footer .footer-top {
    grid-template-columns: 1fr;
  }
  .entry-content h2 { font-size: 1.35rem; }
}

/* Hide default page title on homepage (Astra sometimes shows it) */
/* Hide default theme page titles on all pages (banner now provides consistent branding with logo + company name) */
.page .entry-title,
.single .entry-title,
.ast-article-single .entry-title {
	display: none;
}

.vanus-home .entry-title,
.vanus-home .ast-article-single .entry-title,
.home.page .entry-header {
  display: none !important;
}

/* Slight polish to org connectors for clearer flowchart */
.vanus-org-chart .org-level + .org-level {
  position: relative;
}
.vanus-org-chart .org-level + .org-level::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -14px;
  width: 2px;
  height: 14px;
  background: linear-gradient(var(--vanus-teal), var(--vanus-blue));
  transform: translateX(-50%);
}

/* Hero image overlay badge like template */
.hero-image {
  position: relative;
}
.hero-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 94, 184, 0.95);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.65rem;
  line-height: 1.2;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 140px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-badge i {
  font-size: 0.9rem;
  margin-top: 1px;
}

/* Services inside larger frame/card */
.services-frame {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 12px;
}

/* Reassurance card */
.reassurance-card {
  background: #f0f7ff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #005EB8;
  padding: 12px 16px;
  margin: 12px 0 20px;
  font-size: 0.85rem;
  color: #374151;
  border-radius: 4px;
}

/* Insourcing steps: varied icon colors, blue headings */
.insourcing-steps .step:nth-child(1) .icon-circle { background: #10b981; } /* green */
.insourcing-steps .step:nth-child(2) .icon-circle { background: #005EB8; }
.insourcing-steps .step:nth-child(3) .icon-circle { background: #00A9CE; }
.insourcing-steps .step:nth-child(4) .icon-circle { background: #005EB8; }
.insourcing-steps .step:nth-child(5) .icon-circle { background: #00A9CE; }

.insourcing-steps .step h4 {
  color: #005EB8;
  font-weight: 600;
}

/* Horizontal row for Why + Org + Regulatory like template */
.aligned-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.aligned-sections .col {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.aligned-sections h2 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 8px;
  color: #005EB8;
}

.aligned-sections ul {
  font-size: 0.8rem;
  margin: 0;
  padding-left: 16px;
}

.aligned-sections .vanus-org-chart {
  margin: 8px 0;
  font-size: 0.7rem;
}

.aligned-sections .org-box {
  min-width: 100px;
  padding: 6px 8px;
  font-size: 0.65rem;
}


/* Frames for sections as per template */
.services-frame,
.insourcing-frame,
.gov-frame,
.feature-frame {
  background: #f0f7ff;
  border: 1px solid #005EB8;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

/* Reassurance now inside services frame at bottom */
.services-frame .reassurance-card {
  background: #fff;
  margin-top: 12px;
  margin-bottom: 0;
}

/* Why and Regulatory side by side */
.why-reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 12px;
}

.why-reg-row .text-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
}

.why-reg-row h2 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: #005EB8;
}

/* Small organogram below, between the texts */
.org-small {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.org-small h2 {
  font-size: 1rem;
  color: #005EB8;
  margin-bottom: 4px;
}

.org-small p {
  font-size: 0.8rem;
  margin: 4px 0;
}

.org-small .vanus-org-chart {
  font-size: 0.7rem;
  max-width: 100%;
}

.org-small .org-box {
  padding: 6px 8px;
  font-size: 0.65rem;
  min-width: 110px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.org-small .org-box:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

/* Make connectors thinner for small version */
.org-small .org-vline {
  width: 2px;
  height: 10px;
}

.org-small .org-hline {
  height: 2px;
}

/* ============================================
   CONTACT US NAV DROPDOWN
   Make the "Contact Us" button (styled blue) show a clean dropdown
   of the 5 enquiry options. Selecting one pre-fills the form manually
   via the ?your-enquiry-type= param + improved JS.
   ============================================ */

/* Container li for the contact dropdown */
.main-header-menu .menu-item.menu-item-241,
.main-header-menu .menu-item-has-children.menu-item-241 {
  position: relative;
}

/* The top level Contact Us link keeps its button look (already styled in style.css) */
.main-header-menu .menu-item-241 > a.menu-link,
.main-header-menu .menu-item-241 > a {
  /* ensure arrow is visible on blue bg */
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Style the arrow toggle inside the contact button to be white */
.main-header-menu .menu-item-241 .dropdown-menu-toggle .ast-arrow-svg path,
.main-header-menu .menu-item-241 .dropdown-menu-toggle svg {
  fill: #ffffff;
}

/* The dropdown panel */
.main-header-menu .menu-item-241 .sub-menu {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  min-width: 230px;
  z-index: 9999;
  margin-top: 2px;
}

/* Individual dropdown option links - plain text, not button style */
.main-header-menu .menu-item-241 .sub-menu li a,
.main-header-menu .menu-item-241 .sub-menu a {
  background: transparent !important;
  color: #1f2a44 !important;
  padding: 8px 18px !important;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  border-radius: 0;
  transition: all 0.15s ease;
  text-decoration: none;
  display: block;
}

/* Hover state for dropdown items - subtle NHS highlight */
.main-header-menu .menu-item-241 .sub-menu a:hover,
.main-header-menu .menu-item-241 .sub-menu li:hover > a {
  background-color: #f0f7ff !important;
  color: #005EB8 !important;
  padding-left: 22px !important;
}

/* Focus styles for a11y */
.main-header-menu .menu-item-241 .sub-menu a:focus-visible {
  outline: 2px solid #00A9CE;
  outline-offset: -2px;
  background: #f0f7ff;
}

/* On desktop, standard hover shows it (Astra handles). Ensure no overflow clip */
.main-header-menu .menu-item-241 .sub-menu {
  overflow: visible;
}

/* Mobile: the ast-menu-toggle already handles, keep readable */
@media (max-width: 768px) {
  .main-header-menu .menu-item-241 .sub-menu a {
    padding: 10px 16px !important;
    font-size: 0.95rem;
  }
}

/* Keep the original aligned for now if needed, but override for new */

/* One frame enclosing Why, Regulatory side-by-side and organogram below */
.bottom-sections-frame {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}

/* Side by side Why and Regulatory */
.why-reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

.why-reg-row .text-col {
  /* already has some style from previous, ensure */
  padding: 0;
}

/* Organogram below inside the frame, smaller */
.org-below {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
}

.org-below h2 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.org-below p {
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.org-below .vanus-org-chart {
  font-size: 0.65rem;
}

.org-below .org-box {
  padding: 5px 6px;
  font-size: 0.6rem;
  min-width: 95px;
  transition: all 0.2s ease;
}

.org-below .org-box:hover,
.org-below .org-box:active {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(0,94,184,0.2);
  z-index: 2;
}

/* Make sure v/h lines are subtle in small version */
.org-below .org-vline {
  width: 2px;
  height: 8px;
}
.org-below .org-hline {
  height: 2px;
}
/* Ensure the bottom frame is a clear block below everything, no side float */
.bottom-sections-frame {
  clear: both;
  display: block;
}

/* Make sure org-below is centered below the row inside the frame */
.org-below {
  clear: both;
}
/* Leadership band to enclose Why, Org, Regulatory like the template image */
.leadership-band {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 12px 0;
  font-size: 0.75rem;
}

.leadership-band .col {
  flex: 1;
  min-width: 0;
}

.leadership-band .col h2 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #003087;
  margin: 0 0 4px 0;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 2px;
}

.leadership-band .col.org {
  flex: 1.4;
}

/* Org diagram styling to match the image */
.org-diagram {
  text-align: center;
  margin: 4px 0;
}

.org-diagram .level {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 1px 0;
}

.org-diagram .box {
  border: 1px solid #4a90e2;
  background: #d4e8f7;
  color: #1e40af;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.55rem;
  line-height: 1.1;
  min-width: 60px;
  text-align: center;
  white-space: nowrap;
}

.org-diagram .box.board {
  background: #2a6ebb;
  color: white;
  border-color: #2a6ebb;
  font-weight: 600;
}

.org-diagram .box.staff {
  background: #d4e8f7;
  min-width: 110px;
}

.org-diagram .vline {
  width: 1px;
  height: 6px;
  background: #666;
  margin: 0 auto;
}

.org-diagram .hline {
  height: 1px;
  background: #666;
  width: 50%;
  margin: 0 auto;
}

/* Hover enlarge for org boxes */
.org-diagram .box {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.org-diagram .box:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 1;
}

/* Checklist for Why and Reg */
.leadership-band .checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.3;
}

.leadership-band .checklist li {
  margin-bottom: 1px;
}

.leadership-band .check {
  color: #16a34a;
  font-weight: bold;
  margin-right: 3px;
}

/* Make the org col smaller overall */
.leadership-band .col.org {
  font-size: 0.6rem;
}
/* Improve org lines for tree look */
.org-diagram .level + .vline {
  height: 10px;
}

.org-diagram .vline + .level {
  position: relative;
}

.org-diagram .vline + .level::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: #666;
}

/* Make the band have some background like template */
.leadership-band {
  background: #f8fafc;
}

/* Proper tree lines for organogram using ul/li */
.org-diagram .org-tree {
  padding-top: 10px;
  position: relative;
  display: inline-block;
}

.org-diagram .org-tree ul {
  padding-top: 15px;
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
  padding-left: 0;
}

.org-diagram .org-tree li {
  list-style: none;
  position: relative;
  padding: 0 10px;
  text-align: center;
}

.org-diagram .org-tree li::before,
.org-diagram .org-tree li::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  border-top: 1.5px solid #555;
  height: 15px;
}

.org-diagram .org-tree li::before {
  right: 50%;
  border-right: 1.5px solid #555;
}

.org-diagram .org-tree li::after {
  left: 50%;
  border-left: 1.5px solid #555;
}

.org-diagram .org-tree li:only-child::after,
.org-diagram .org-tree li:only-child::before {
  display: none;
}

.org-diagram .org-tree li:last-child::before,
.org-diagram .org-tree li:first-child::after {
  border: 0 none;
}

.org-diagram .org-tree li:last-child::after {
  border-left: 1.5px solid #555;
  border-radius: 0 4px 0 0;
}

.org-diagram .org-tree li:first-child::before {
  border-right: 1.5px solid #555;
  border-radius: 4px 0 0 0;
}

.org-diagram .org-tree .node {
  border: 1px solid #1976d2;
  background: #e3f2fd;
  color: #0d47a1;
  padding: 4px 6px;
  border-radius: 4px;
  display: inline-block;
  min-width: 75px;
  font-size: 0.65rem;
  line-height: 1.15;
  position: relative;
  z-index: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.org-diagram .org-tree .node.board {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2;
  font-weight: 600;
}

.org-diagram .org-tree .node:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(25, 118, 210, 0.3);
}

/* Adjust for the band */
.leadership-band .org-diagram {
  font-size: 0.6rem;
  margin-top: 5px;
}
/* Main enclosing frame for Why + Reg + Organogram */
.bottom-frame {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Side-by-side row for the two text sections */
.why-reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

.why-reg-row .text-col {
  font-size: 0.8rem;
}

.why-reg-row h2 {
  font-size: 0.95rem;
  color: #005EB8;
  margin-bottom: 6px;
  border-bottom: 1px solid #eee;
  padding-bottom: 3px;
}

.why-reg-row .checklist {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.75rem;
}

.why-reg-row .checklist li {
  margin-bottom: 2px;
}

.why-reg-row .check {
  color: #10b981;
  font-weight: bold;
  margin-right: 4px;
}

/* Organogram container below the row, centered inside the frame */
.org-container {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.org-container h2 {
  font-size: 0.9rem;
  color: #005EB8;
  margin-bottom: 4px;
}

.org-container p {
  font-size: 0.75rem;
  margin: 4px 0 8px;
}
/* Ensure clean block layout for the bottom frame */
.bottom-frame {
  clear: both !important;
  display: block !important;
}

/* Make the two text sections side by side cleanly */
.why-reg-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

/* Organogram below, centered inside frame */
.org-container {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  text-align: center;
}
/* New framed layout for Why / Reg / Org */
.bottom-framed {
  margin: 16px 0;
}

.top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.section-frame {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  box-sizing: border-box;
}

.org-frame {
  margin-top: 12px;
}

.top-row .section-frame h2 {
  font-size: 0.95rem;
  color: #005EB8;
  margin-top: 0;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

.top-row .section-frame .checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
}

.top-row .section-frame .checklist li {
  margin-bottom: 3px;
}

/* Text wrapping in organogram boxes for mobile/resize */
.org-diagram .node,
.org-tree .node {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Make sure org frame doesn't overflow */
.org-frame .org-diagram {
  overflow: hidden;
}

/* Horizontal CTA card linking to the full Leadership & Accountability page */
.leadership-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f6fc;
  border: 1px solid #cfe2f3;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  color: #005EB8;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.leadership-cta:hover,
.leadership-cta:focus {
  background: #e1edf9;
  border-color: #005EB8;
  text-decoration: none;
}

.leadership-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #005EB8;
  color: #fff;
  font-size: 0.9rem;
}

.leadership-cta-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.3;
}

.leadership-cta-text strong {
  font-size: 0.95rem;
  color: #1a1a1a;
}

.leadership-cta-text span {
  font-size: 0.8rem;
  color: #005EB8;
}

.leadership-cta-arrow {
  font-size: 1.1rem;
  color: #005EB8;
  flex-shrink: 0;
}

/* Stack on very small screens */
@media (max-width: 600px) {
  .top-row {
    grid-template-columns: 1fr;
  }
  .org-frame {
    margin-top: 8px;
  }
}
/* Make sure org-frame looks like the other section frames */
.org-frame {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  box-sizing: border-box;
}

.org-frame h2 {
  font-size: 0.95rem;
  color: #005EB8;
  margin-top: 0;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

/* Banner now ABOVE the menu (hooked via astra_header_before).
   Contains logo + company name + search. Both banner and menu are sticky. */
.vanus-large-logo-below-menu {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	padding: 10px 0;
	background: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	position: sticky;
	top: 0;
	z-index: 10000;
}

/* Logo image in banner */
.vanus-large-logo-below-menu .vanus-large-logo {
	max-height: 70px;
	width: auto;
	flex-shrink: 0;
	display: block;
}

/* Make logo a clickable card with visible boundary that enlarges on hover */
.vanus-large-logo-below-menu .banner-logo-link {
	display: inline-block;
	border: 1px solid #e5e7eb; /* visible boundary around the logo */
	border-radius: 6px;
	padding: 4px;
	background: #fff;
	transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s;
}

.vanus-large-logo-below-menu .banner-logo-link:hover {
	transform: scale(1.12); /* enlarges like a card popping out */
	box-shadow: 0 10px 25px rgba(0, 94, 184, 0.18);
	border-color: #005EB8; /* stronger blue boundary on hover */
}

/* Company name text */
.vanus-large-logo-below-menu .company-name {
	font-size: 1.4rem;
	font-weight: 700;
	color: #005EB8;
	white-space: nowrap;
	line-height: 1.1;
	flex-shrink: 0;
}

/* Search form next to company name in banner */
.vanus-header-search {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 4px;
}

.vanus-header-search .search-field {
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.9rem;
	min-width: 160px;
}

.vanus-header-search .search-submit {
	padding: 6px 12px;
	background: #005EB8;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 0.85rem;
	cursor: pointer;
}

/* Make search input look integrated */
.vanus-large-logo-below-menu .vanus-header-search input[type="search"] {
	background: #f8f9fa;
}

/* Menu is now below the sticky banner — offset its sticky top position */
.ast-primary-header-bar,
.site-header {
	position: sticky;
	top: 70px; /* height of the banner above it */
	z-index: 9999;
	background-color: #ffffff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hide small logo in the menu/header (the banner above now provides logo + company name) */
.site-header .site-logo-img,
.site-header .custom-logo-link,
.site-header .ast-site-identity {
	display: none !important;
}

/* Force compact horizontal Contact Us button in menu - override tall menu item heights.
   Only apply to the parent button itself (exclude the query-param submenu links) */
.main-header-menu .menu-item > a[href*="/contact-us"]:not([href*="?"]),
.main-header-menu .menu-item > a[href*="/contact"]:not([href*="?"]),
.main-header-menu .menu-item a.menu-link[href*="/contact-us"]:not([href*="?"]),
.main-header-menu .menu-item a.menu-link[href*="/contact"]:not([href*="?"]) {
  background-color: #005EB8 !important;
  color: #fff !important;
  padding: 3px 22px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  font-size: 0.9rem !important;
}

.main-header-menu .menu-item > a[href*="/contact-us"]:not([href*="?"]):hover,
.main-header-menu .menu-item > a[href*="/contact"]:not([href*="?"]):hover,
.main-header-menu .menu-item a.menu-link[href*="/contact-us"]:not([href*="?"]):hover,
.main-header-menu .menu-item a.menu-link[href*="/contact"]:not([href*="?"]):hover {
  background-color: #00A9CE !important;
  color: #fff !important;
  padding: 3px 22px !important;
  line-height: 1.15 !important;
}
