/* ========================================
   SERVICE RAG AUDIT - STYLES
   ======================================== */

/* ── RIPPLE EFFECT ── */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── HERO CTA BUTTON ARROW ANIMATION ── */
.service-hero-cta {
  color: #FFFFFF !important;
}

.service-hero-cta span {
  color: #FFFFFF !important;
}

.service-hero-cta * {
  color: #FFFFFF !important;
}

.service-hero-cta .hero-cta-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.service-hero-cta .hero-arrow-icon {
  transition: transform 0.4s ease, stroke 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-hero-cta:hover .hero-cta-icon {
  background: white;
}

.service-hero-cta:hover .hero-arrow-icon {
  stroke: #A855F7;
  stroke-width: 2.5;
  animation: arrowSlide 0.8s ease infinite;
}

.service-hero-cta:hover span {
  color: #FFFFFF !important;
}

@keyframes arrowSlide {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  45% {
    transform: translateX(10px);
    opacity: 0;
  }
  55% {
    transform: translateX(-10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent-blue);
  color: var(--white);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* ── HERO GRADIENT BUTTON ── */
.hero-gradient-btn {
  background: linear-gradient(90deg, #60A5FA 0%, #A855F7 100%);
  background-size: 200% auto;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { 
    background-position: 0% center; 
  }
  50% { 
    background-position: 100% center; 
  }
}

.hero-gradient-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(96,165,250,0.5);
}

/* ── SILENT TRAP CARDS ── */
.silent-trap-card {
  position: relative;
  cursor: pointer;
  background: #FFFFFF;
}

.silent-trap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #60A5FA 0%, #A855F7 50%, #EC4899 100%);
  border-radius: 16px;
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.silent-trap-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.silent-trap-card:hover::before {
  opacity: 1;
}

.silent-trap-card:hover .card-number {
  background: linear-gradient(135deg, #60A5FA 0%, #A855F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SECTION STYLES ── */
.section-white {
  background: #FFFFFF;
  color: #111;
}

.section-black {
  background: #000;
  color: #E5E5E5;
}

/* ── METHODOLOGY HORIZONTAL SCROLL ── */
.methodology-scroll-container {
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  touch-action: pan-x pan-y;
}

.methodology-scroll-container::-webkit-scrollbar {
  display: none;
}

.methodology-card-horizontal {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ── METHODOLOGY SECTION - MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  #methodology-section {
    height: auto !important;
    overflow: visible !important;
  }

  .methodology-scroll-container {
    touch-action: pan-x pan-y !important;
    height: auto !important;
  }

  /* Adjust card width for mobile */
  .methodology-card-horizontal {
    flex: 0 0 320px !important;
    min-height: 300px !important;
    padding: 1.75rem !important;
    /* Show gradient border by default on mobile */
    opacity: 1 !important;
    background: rgba(26,26,26,1) !important;
    border: 2px solid transparent !important;
    background-image: linear-gradient(rgba(26,26,26,1), rgba(26,26,26,1)), linear-gradient(135deg, #44ACE3 0%, #EC4899 100%) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
  }

  .methodology-card-horizontal .card-number-horizontal {
    font-size: 3rem !important;
    /* Show gradient on number by default on mobile */
    background: linear-gradient(135deg, #44ACE3 0%, #EC4899 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
  }

  .methodology-card-horizontal h3 {
    font-size: 1.125rem !important;
  }

  .methodology-card-horizontal p {
    font-size: 0.875rem !important;
  }

  /* Adjust timeline width for mobile card sizes */
  .horizontal-timeline-line {
    width: calc(320px * 4 + 2rem * 3) !important;
  }

  .horizontal-timeline-segment {
    max-width: calc(320px * 4 + 2rem * 3) !important;
  }

  .horizontal-ending-circle {
    left: calc(320px * 4 + 2rem * 3) !important;
  }

  /* Adjust timeline circle positions */
  .horizontal-timeline-circle:nth-child(1) {
    margin-left: 150px !important;
  }

  .horizontal-timeline-circle:nth-child(2) {
    margin-left: 310px !important;
  }

  .horizontal-timeline-circle:nth-child(3) {
    margin-left: 310px !important;
  }

  .horizontal-timeline-circle:nth-child(4) {
    margin-left: 310px !important;
  }

  /* Reduce section title */
  #methodology-section h2 {
    font-size: 1.5rem !important;
    margin-bottom: 2.5rem !important;
  }

  /* Reduce section padding */
  #methodology-section {
    padding: 4rem 1rem !important;
  }
}

/* Tablet adjustments for Methodology */
@media (min-width: 769px) and (max-width: 1024px) {
  .methodology-scroll-container {
    touch-action: pan-x pan-y !important;
  }

  .methodology-card-horizontal {
    flex: 0 0 420px !important;
    padding: 2rem !important;
    /* Show gradient border by default on tablet */
    opacity: 1 !important;
    background: rgba(26,26,26,1) !important;
    border: 2px solid transparent !important;
    background-image: linear-gradient(rgba(26,26,26,1), rgba(26,26,26,1)), linear-gradient(135deg, #44ACE3 0%, #EC4899 100%) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
  }

  .methodology-card-horizontal .card-number-horizontal {
    font-size: 3.5rem !important;
    /* Show gradient on number by default on tablet */
    background: linear-gradient(135deg, #44ACE3 0%, #EC4899 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
  }

  .methodology-card-horizontal h3 {
    font-size: 1.125rem !important;
  }

  .methodology-card-horizontal p {
    font-size: 0.9rem !important;
  }

  /* Adjust timeline width for tablet card sizes */
  .horizontal-timeline-line {
    width: calc(420px * 4 + 2rem * 3) !important;
  }

  .horizontal-timeline-segment {
    max-width: calc(420px * 4 + 2rem * 3) !important;
  }

  .horizontal-ending-circle {
    left: calc(420px * 4 + 2rem * 3) !important;
  }

  /* Adjust timeline circle positions */
  .horizontal-timeline-circle:nth-child(1) {
    margin-left: 200px !important;
  }

  .horizontal-timeline-circle:nth-child(2) {
    margin-left: 400px !important;
  }

  .horizontal-timeline-circle:nth-child(3) {
    margin-left: 400px !important;
  }

  .horizontal-timeline-circle:nth-child(4) {
    margin-left: 400px !important;
  }
}

.silent-trap-card {
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ── EYEBROW PILL ── */
.eyebrow-pill {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* ── HERO RAG AUDIT SECTION ── */
.hero-rag-audit {
  position: relative;
  overflow: hidden;
}

.hero-rag-audit h1,
.hero-rag-audit .eyebrow-pill {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ── MAIN CONTENT ── */
#main-content {
  position: relative;
  z-index: 1;
}

/* ── PARTICLE BACKGROUND ── */
#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-rag-audit {
    padding: calc(70px + 3rem) 2rem 4rem 2rem !important;
    min-height: 60vh !important;
  }
  
  .silent-trap-card {
    margin-bottom: 1.5rem;
  }

  /* AI Promise Section - Mobile */
  .ai-promise-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .ai-promise-image {
    margin-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center !important;
  }

  .ai-promise-image img {
    max-width: 70% !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
  }

  .ai-promise-image::before {
    width: 400px !important;
    height: 400px !important;
  }

  .ai-promise-cta {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 1.125rem 2rem !important;
    display: block !important;
  }

  .ai-promise-title {
    font-size: 2rem !important;
  }

  .ai-promise-description {
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
  }

  .ai-promise-section {
    padding: 4rem 2rem !important;
  }
}

/* Tablet adjustments for AI Promise */
@media (min-width: 769px) and (max-width: 1024px) {
  .ai-promise-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .ai-promise-image {
    margin-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center !important;
  }

  .ai-promise-image img {
    max-width: 80% !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
  }

  .ai-promise-image::before {
    width: 500px !important;
    height: 500px !important;
  }
}

@media (max-width: 1024px) {
  .container > div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Prevent horizontal scroll on 3 Vectors section */
  .section-white {
    overflow-x: hidden !important;
  }
  
  .section-white .container {
    overflow-x: hidden !important;
  }
  
  /* Ensure cards don't cause overflow */
  .silent-trap-card {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }
}

/* ── ACCESSIBILITY ── */
.skip-to-main {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--accent-blue);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 99999;
  transition: top var(--transition-base);
}

.skip-to-main:focus {
  top: var(--space-4);
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

a:focus,
button:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* ── REDUCED MOTION SUPPORT ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.reduce-motion .fade-up {
  opacity: 1 !important;
  transform: none !important;
}

/* ── SMOOTH SCROLL ── */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ========================================
   AI PROMISE SECTION
   ======================================== */

.ai-promise-section {
  padding: 6rem 0;
  background: #172443;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ai-promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

.ai-promise-content {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ai-promise-content.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.ai-promise-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: #fff;
}

.ai-promise-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.ai-promise-cta {
  display: inline-block;
  background: linear-gradient(90deg, #60A5FA 0%, #A855F7 100%);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(96, 165, 250, 0.4);
}

.ai-promise-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.6);
}

.ai-promise-image {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  padding-right: 2rem;
  margin-left: 3rem;
}

.ai-promise-image.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.ai-promise-image::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(96, 165, 250, 0.3) 30%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: siri-wave 4s ease-in-out infinite;
  filter: blur(40px);
}

.ai-promise-image img {
  max-width: 120%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  animation: rotate-sphere 20s linear infinite;
  transform-origin: center center;
  margin-right: -3rem;
  margin-top: -2rem;
}

@keyframes rotate-sphere {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes siri-wave {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* ========================================
   GLASS SHINE ANIMATION
   ======================================== */

@keyframes glass-shine {
  0% {
    background-position: -200% center;
  }
  50% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* ========================================
   POLICY CARD DROP-IN ANIMATION
   ======================================== */

@keyframes cardDropIn {
  0% {
    opacity: 0;
    transform: scaleY(0);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ========================================
   PLACEHOLDER LINES ANIMATION
   ======================================== */

@keyframes placeholderMove {
  0% {
    transform: translateY(-11rem);
  }
  100% {
    transform: translateY(0);
  }
}

/* ========================================
   RIGHT CARD SEQUENTIAL FADE-IN ANIMATION
   ======================================== */

@keyframes fadeInSequence1 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInSequence2 {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInSequence3 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInSequence4 {
  0% {
    opacity: 0;
  }
  75% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ========================================
   CENTER DRIFT ANIMATION
   ======================================== */

@keyframes driftCircleBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

@keyframes badgePulse {
  0%, 100% {
    color: rgba(255, 255, 255, 0.4);
  }
  50% {
    color: rgba(255, 255, 255, 1);
  }
}

.drift-circle {
  animation: driftCircleBounce 1s ease-in-out infinite;
}

.failure-badge {
  animation: badgePulse 1s ease-in-out infinite;
}

/* ========================================
   REGIONAL COMPLIANCE FRAMEWORKS - MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  /* Keep table structure but adjust sizing */
  .section-black div[style*="grid-template-columns:1fr 2fr"] {
    grid-template-columns: 0.8fr 2fr !important;
    gap: 0.5rem !important;
  }

  /* Adjust vertical line position for mobile */
  .section-black div[style*="position:absolute"][style*="left:calc"] {
    left: calc(28% - 0.5px) !important;
  }

  /* Header text sizing */
  .section-black div[style*="grid-template-columns:1fr 2fr"][style*="background:rgba(30,30,30"] > div {
    font-size: 0.625rem !important;
    letter-spacing: 0.08em !important;
  }

  /* Region column text */
  .section-black div[style*="grid-template-columns:1fr 2fr"] > div:first-child {
    font-size: 0.8125rem !important;
  }

  /* Framework column text */
  .section-black div[style*="grid-template-columns:1fr 2fr"] > div:last-child {
    font-size: 0.8125rem !important;
    line-height: 1.5 !important;
  }

  .section-black div[style*="grid-template-columns:1fr 2fr"] > div:last-child span {
    font-size: 0.8125rem !important;
  }

  /* Reduce padding for mobile */
  .section-black div[style*="grid-template-columns:1fr 2fr"][style*="padding:2rem"] {
    padding: 1.25rem 0.75rem !important;
  }

  .section-black div[style*="grid-template-columns:1fr 2fr"][style*="padding:1.5rem 2rem"] {
    padding: 1rem 0.75rem !important;
  }

  /* Adjust section title */
  .section-black h2 {
    font-size: 1.5rem !important;
    margin-bottom: 2rem !important;
  }

  /* Adjust section padding */
  .section-black[style*="padding:6rem 2rem"] {
    padding: 4rem 1rem !important;
  }
}

/* Tablet adjustments for Regional Compliance */
@media (min-width: 769px) and (max-width: 1024px) {
  .section-black div[style*="grid-template-columns:1fr 2fr"] {
    gap: 1rem !important;
  }

  .section-black div[style*="grid-template-columns:1fr 2fr"][style*="padding:2rem"] {
    padding: 1.5rem !important;
  }

  .section-black div[style*="grid-template-columns:1fr 2fr"] > div:first-child {
    font-size: 0.9375rem !important;
  }

  .section-black div[style*="grid-template-columns:1fr 2fr"] > div:last-child {
    font-size: 0.9375rem !important;
  }
}

/* ========================================
   AUTOPSY SECTION - MOBILE RESPONSIVE
   ======================================== */

/* Mobile Layout - Vertical Stack */
@media (max-width: 768px) {
  #autopsy-section .container > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    align-items: center !important;
  }

  /* Source Document Card - Compact Top */
  #autopsy-section .container > div:last-child > div:nth-child(1) {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 280px !important;
    order: 1;
  }

  #autopsy-section .container > div:last-child > div:nth-child(1) > div:first-child {
    padding: 1rem 1.5rem !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(1) > div:first-child h3 {
    font-size: 0.75rem !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(1) > div:last-child {
    padding: 1.5rem !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(1) .policy-card-animated {
    padding: 1rem !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(1) .policy-card-animated > div {
    font-size: 0.875rem !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(1) .policy-card-animated p {
    font-size: 0.8125rem !important;
  }

  /* Semantic Drift Center - With Vertical Connectors */
  #autopsy-section .container > div:last-child > div:nth-child(2) {
    width: 100% !important;
    order: 2;
    position: relative;
    padding: 3rem 0 !important;
  }

  /* Add vertical line going UP to source card */
  #autopsy-section .container > div:last-child > div:nth-child(2)::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: #DC2626;
    z-index: 1;
  }

  /* Add vertical line going DOWN to failure card */
  #autopsy-section .container > div:last-child > div:nth-child(2)::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: #DC2626;
    z-index: 1;
  }

  #autopsy-section .container > div:last-child > div:nth-child(2) > div:first-child {
    width: 50px !important;
    height: 50px !important;
    border-width: 4px !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(2) > div:first-child svg {
    width: 28px !important;
    height: 28px !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(2) > div:nth-child(2) > div {
    font-size: 1.5rem !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(2) > div:nth-child(2) p {
    font-size: 0.875rem !important;
    max-width: 100% !important;
  }

  /* Hide horizontal red lines */
  #autopsy-section .failure-line-left,
  #autopsy-section .failure-line-right {
    display: none !important;
  }

  /* Adjust failure badge */
  #autopsy-section .failure-badge {
    font-size: 0.75rem !important;
    padding: 0.5rem 1rem !important;
  }

  /* Critical Integrity Failure Card - Compact Bottom */
  #autopsy-section .container > div:last-child > div:nth-child(3) {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 320px !important;
    order: 3;
    padding: 2rem 1.5rem !important;
  }

  /* Fix gradient border overlay thickness on mobile */
  #autopsy-section .container > div:last-child > div:nth-child(3) > div:first-child {
    padding: 1px !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(3) .right-card-header {
    margin-bottom: 2rem !important;
    gap: 1rem !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(3) .right-card-header > div:first-child {
    width: 28px !important;
    height: 28px !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(3) .right-card-header h3 {
    font-size: 1rem !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(3) .right-card-finding,
  #autopsy-section .container > div:last-child > div:nth-child(3) .right-card-risk,
  #autopsy-section .container > div:last-child > div:nth-child(3) .right-card-compliance {
    margin-bottom: 1.5rem !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(3) .right-card-finding > div,
  #autopsy-section .container > div:last-child > div:nth-child(3) .right-card-risk > div,
  #autopsy-section .container > div:last-child > div:nth-child(3) .right-card-compliance > div {
    font-size: 0.75rem !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(3) .right-card-finding p,
  #autopsy-section .container > div:last-child > div:nth-child(3) .right-card-risk p {
    font-size: 0.9375rem !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(3) .right-card-compliance p {
    font-size: 1rem !important;
  }

  /* Section heading adjustments */
  #autopsy-section h2 {
    font-size: 1.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  #autopsy-section > div > p {
    font-size: 0.875rem !important;
    margin-bottom: 2.5rem !important;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  #autopsy-section .container > div:last-child {
    gap: 3rem !important;
  }

  #autopsy-section .container > div:last-child > div:nth-child(1),
  #autopsy-section .container > div:last-child > div:nth-child(3) {
    min-height: 350px !important;
  }
}
