/* ==========================================================================
   UXMC SECTION OVERHAUL
   ========================================================================== */
.uxmc {
  background-color: var(--bg-primary);
  padding: 40px 0px;
}

.uxmc-header-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.badge-label {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: #0A8049;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.uxmc h2 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.uxmc-desc {
  font-size: 1.15rem;
  max-width: 650px;
}

/* Trust Metrics Layout */
.trust-metrics {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    border-top: 1px solid #e7e7e7;
    padding-top: 2rem;

    @media (max-width: 768px) {
        display: block;
    }

}

.metric-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.metric-item strong {
  font-size: 2.2rem;
  font-family: "Bebas Neue", sans-serif;
  line-height: 1;
  letter-spacing: .08rem;
}

.metric-item span {
  font-size: 0.9rem;
  color: #555555;
}

/* ========================================================================== 
   BADGE ILLUSTRATION OVERLAY ENGINE (SYNCHRONIZED PRODUCTION CODE) 
   ========================================================================== */
:root {
  /* Darkened alpha channel depths from 0.08 up to a crisp 0.22/0.25 framework line */
  --uxmc-grid-line: rgba(0, 50, 78, 0.22); 
  --uxmc-shape-fill: rgba(10, 128, 73, 0.5);
  --uxmc-shape-stroke: rgba(10, 128, 73, 0.2);
  --uxmc-node-color: var(--highlight-txt);
  --uxmc-accent-text: #0A8049;
}



.badge-label {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--uxmc-accent-text); /* Now adapts dynamically to dark mode */
  font-weight: 700;
  margin-bottom: 0.5rem;
}


.cert-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 380px;
    overflow: visible; /* Prevents outer technical dash arrays from cropping at boundary edges */

    @media (max-width: 768px) {
        display: none;
    }
}

.badge-illustration-vector {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 115%;
  max-width: 460px;
  
  /* FORCE A PERFECT SQUARE BOX */
  aspect-ratio: 1 / 1; 
  
  /* Pure layout centering—do not let animations touch this property */
  transform: translate(-50%, -50%); 
  
  z-index: 1;
  pointer-events: none;
}

.badge-illustration-vector svg {
  width: 100%;
  height: 100%; /* Force it to stretch evenly into the square box */
  overflow: visible;
  
  /* CRITICAL: Enforce vector rendering bounds */
  transform-origin: center center;
  transform-box: fill-box; 
  
  /* Move your animation HERE and slow it down (1s is blindingly fast!) */
  animation: cleanSpin 100s linear infinite; 
}

/* A clean, standalone rotation rule that never alters layout translation scales */
@keyframes cleanSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.uxmc-img {
  position: relative;
  bottom: 4px;
  width: 100%;
  max-width: 280px;
  height: auto;
  opacity: 1;
  z-index: 5;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

[data-theme="dark"] .ux-courses li { 
    border-bottom: 1px solid rgba(255, 255, 255, .2); 
}

[data-theme="dark"] .ux-courses li:hover { 
    border-left: rgb(1, 144, 180) 4px solid;
}

/* Pillars Expertise Grid */
.grid-section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e7e7e7;
  padding-bottom: 0.5rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 5px 0px 40px 0px;
}

.pillar-card {
  background: rgba(21, 129, 181, 0.03);
  border: 1px solid rgba(0, 50, 78, 0.08);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.pillar-card:hover {
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 50, 78, 0.06);
  border-color: rgba(0, 50, 78, 0.15);
}

.pillar-icon {
    display: inline-block;
    height: 32px;;
    font-size: 2rem;
    color: #00324e;
    margin-bottom: 1.5rem;
}

.pillar-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pillar-summary {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.pillar-list {
  list-style: none;
  margin-top: auto;
  border-top: 1px dashed rgba(0, 50, 78, 0.1);
  padding-top: 1.5rem;
}

.pillar-list li {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333333;
  padding: 0.4rem 0 0.4rem 1.2rem;
  position: relative;
  line-height: 1.2;
}

.pillar-list li::before {
    content: "⁖";
    position: absolute;
    left: 0;
    top: 6px;
    font-weight:bolder;
    font-size: 20px;
    color: var(--highlight-txt);
    transform: rotate(180deg);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .uxmc-header-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .uxmc-desc {
    margin: 0 auto;
  }
  
  .trust-metrics {
    justify-content: center;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ========================================================================== 
   UXMC DARK MODE ADJUSTMENTS (HIGH CONTRAST ROTATION ENGINE)
   ========================================================================= */ 

[data-theme="dark"] .metric-item span { 
  color: rgba(255, 255, 255, 0.6); 
} 

[data-theme="dark"] .pillar-card { 
  background: rgba(255, 255, 255, 0.02); 
  border: 1px solid rgba(255, 255, 255, 0.08); 
} 

[data-theme="dark"] .pillar-card:hover { 
  background: #2a2a2a; 
  border-color: rgba(255, 255, 255, 0.15); 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); 
} 

[data-theme="dark"] .pillar-icon { 
  color: #0d94e2; 
} 

[data-theme="dark"] .pillar-summary { 
  color: rgba(255, 255, 255, 0.6); 
} 

[data-theme="dark"] .pillar-list li { 
  color: rgba(255, 255, 255, 0.85); 
}

/* High Contrast theme variable outputs for sharp dark visibility */
[data-theme="dark"],
[data-theme="dark"] .badge-illustration-vector,
[data-theme="dark"] svg { 
  --uxmc-grid-line: rgba(255, 255, 255, 0.18); /* Raised from 0.06 to 0.18 for clean technical visibility */
  --uxmc-shape-fill: rgba(13, 148, 226, 0.04); 
  --uxmc-shape-stroke: rgba(13, 148, 226, 0.25); 
  --uxmc-node-color: var(--highlight-txt);
}