/* --- HOMEPAGE HERO (+1 Square Calibration) --- */
.path-frontpage .region--content-above,
.path-frontpage .block-page-title-block {
  background-color: #001f3f !important; 
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.07) 1px, transparent 1px) !important;
  background-size: 30px 30px !important;
  
  /* HEIGHT: 150px = Exactly 5 Grid Rows */
  min-height: 150px !important; 
  padding: 0 !important; 
  
  border-bottom: 4px solid #004080 !important;
  
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

.path-frontpage h1.page-title {
  color: #ffffff !important;
  font-size: 1.8rem !important; 
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

/* Ensure the desktop text displays normally on wide screens */
@media (min-width: 768px) {
  .grid-text-mobile { display: none !important; }
}

/* On mobile, hide the full SEO title and show the shortened version */
@media (max-width: 767px) {
  .grid-text-desktop { display: none !important; }
  .grid-text-mobile { display: block !important; }
}

/* 1. On desktop, show the standard title as usual */
.hero-title-class {
  display: block;
}

/* 2. On mobile, hide the actual title text */
@media (max-width: 767px) {
  .hero-title-class {
    visibility: hidden;
    position: relative;
  }

  /* 3. Inject the short version instead */
  .hero-title-class::after {
    content: "Docuserves";
    visibility: visible;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* --- Mobile Title Swap --- */
@media (max-width: 767px) {
  /* Hide the original full title on mobile */
  .path-frontpage h1.page-title {
    visibility: hidden;
    position: relative;
    height: 30px; /* Ensures the blue grid container stays the right height */
  }

  /* Inject the short version using the same styles */
  .path-frontpage h1.page-title::after {
    content: "Docuserves";
    visibility: visible;
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
  }
}

/* --- Content Header Styles (Industrial/Tactical) --- */
.path-frontpage .region-content h2 {
    color: #001f3f !important; /* Matches Hero Navy */
    font-size: 1.6rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
    border-left: 6px solid #004080 !important; /* Navy accent bar */
    padding-left: 15px !important;
    font-weight: 800 !important;
}

/* Ensure mobile headers scale down properly */
@media (max-width: 767px) {
    .path-frontpage .region-content h2 {
        font-size: 1.3rem !important;
        margin-top: 1.8rem !important;
    }
}

/* --- Content Header Styles (Adjusted for Dark Grey Theme) --- */
.path-frontpage .region-content h2 {
    color: #333333 !important; /* Updated to Dark Grey */
    font-size: 1.6rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
    border-left: 6px solid #444444 !important; /* Slightly lighter grey for the accent bar */
    padding-left: 15px !important;
    font-weight: 800 !important;
}

@media (max-width: 767px) {
    .path-frontpage .region-content h2 {
        font-size: 1.3rem !important;
    }
}

/* Force the hover color by being more specific than the theme */
body.path-node .region-content a#integrity-cta:hover,
#integrity-cta:hover {
    background-color: #004080 !important; 
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Evidence Retrieval Button Hover */
body.path-node .region-content a#evidence-cta:hover,
#evidence-cta:hover {
    background-color: #004080 !important; /* Steel Blue */
    color: #ffffff !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
}

/* Surveillance Ops Button Hover */
body.path-node .region-content a#surveillance-cta:hover,
#surveillance-cta:hover {
    background-color: #004080 !important; /* Steel Blue */
    color: #ffffff !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
}

/* Database Audit Button Hover */
body.path-node .region-content a#audit-cta:hover,
#audit-cta:hover {
    background-color: #004080 !important; /* Steel Blue */
    color: #ffffff !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
}

/* Final Set Hover Logic */
body.path-node .region-content a#judgment-cta:hover,
body.path-node .region-content a#deepdive-cta:hover,
#judgment-cta:hover,
#deepdive-cta:hover {
    background-color: #004080 !important; 
    color: #ffffff !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
}

/* --- Service of Process: mobile grid title fix ONLY --- */
@media (max-width: 767px) {

  body.path-node.page-node-type-page .region--content-above h1.page-title {
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

}

/* Container for the whole list */
.view-client-reviews .view-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* The Individual Review "Card" */
.view-client-reviews .views-row {
  background: #0a0a0a; /* Deep black */
  border: 1px solid #1a1a1a; /* Subtle border */
  border-left: 4px solid #00d4ff; /* The Neon Blue accent */
  padding: 30px;
  position: relative;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
}

/* The Quote/Body Text */
.view-client-reviews .views-field-body {
  font-family: 'Georgia', serif; /* Makes it feel like a "statement" */
  font-style: italic;
  font-size: 1.1rem;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* The Client Name (Title) */
.view-client-reviews .views-field-title {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 1px;
}

/* The Location/Company class we created */
.testimonial-location {
  font-size: 0.85rem;
  color: #00d4ff;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.8;
}

/* Style the new Client Review text */
.view-client-reviews .views-field-field-client-review {
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 15px;
  font-style: italic;
  display: block;
}

/* Ensure the layout doesn't look like a 'broken box' */
.view-client-reviews .views-row {
  border-left: 3px solid #00d4ff;
  background: #0a0a0a;
  padding: 20px;
  margin-bottom: 30px;
}