/**
 * Laureate Our Expertise Section Styles
 *
 * @package Laureate
 * @version 1.0.0
 */

:root {
  --sp-blue: #0a2248;       /* Brand Blue - Used as main background */
  --sp-green: #1d960c;      /* Brand Green */
  --sp-text-dark: #334155;  /* Dark text for inside the white boxes */
  --sp-heading-dark: #0f172a; /* Almost black for headings */
  /* AI Glow Colors */
  --glow-blue: rgba(45, 122, 241, 0.3);
  --glow-green: rgba(29, 150, 12, 0.3);
}

.evo-structure-premium,
.evo-structure-premium * {
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* --- Animated Tech Background Section --- */
.evo-structure-premium {
  padding: 70px 24px;
  position: relative;
  overflow: hidden;
  background-color: var(--sp-blue);
}

/* Subtle Dot Grid Overlay */
.evo-tech-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.8;
  z-index: 0;
}

/* Animated Glowing Orbs */
.evo-structure-premium::before,
.evo-structure-premium::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

.evo-structure-premium::before {
  background: var(--glow-blue);
  top: -100px;
  left: -100px;
  animation: floatGlow 12s infinite alternate ease-in-out;
}

.evo-structure-premium::after {
  background: var(--glow-green);
  bottom: -100px;
  right: -100px;
  animation: floatGlow 18s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(150px, 100px) scale(1.1); }
  100% { transform: translate(-50px, 150px) scale(1.2); }
}

/* --- Container --- */
.evo-sp-container {
  max-width: 1280px; 
  margin: 0 auto;
  position: relative;
  z-index: 1; /* Keeps content above the glowing background */
}

/* --- Section Heading --- */
.evo-section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.evo-micro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #4ade80; 
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(74, 222, 128, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: premiumFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- 3-Column Grid Layout --- */
.evo-sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* --- Solid White Card Styling --- */
.evo-sp-card {
  position: relative;
  background: #ffffff; /* 3 Box White */
  border-radius: 24px;
  padding: 48px 32px;
  text-align: left;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0; 
}

/* Staggered entrance animations */
.evo-sp-card:nth-child(1) { animation: premiumFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; }
.evo-sp-card:nth-child(2) { animation: premiumFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; }
.evo-sp-card:nth-child(3) { animation: premiumFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }

/* Subtle Interactive Accent Line (Bottom) */
.evo-sp-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sp-blue), var(--sp-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.evo-sp-card:hover {
  transform: translateY(-10px);
  /* Glowing hover shadow */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(29, 150, 12, 0.15);
}

.evo-sp-card:hover::after {
  transform: scaleX(1);
}

/* --- Typography & Elements (Dark text inside white box) --- */
.evo-sp-number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%); /* Slate grey numbers initially */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.5s ease;
}

.evo-sp-card:hover .evo-sp-number {
  background: linear-gradient(135deg, var(--sp-green) 0%, var(--sp-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.3;
}

.evo-sp-card h3 {
  color: var(--sp-heading-dark); /* Black/Dark Heading */
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
  line-height: 1.4;
}

.evo-sp-card p {
  color: var(--sp-text-dark); /* Black/Dark text */
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  font-weight: 500;
}

/* --- Keyframe Animations --- */
@keyframes premiumFadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Mobile Responsiveness --- */
@media(max-width: 1024px) {
  .evo-sp-grid {
    gap: 20px;
  }
  .evo-sp-card {
    padding: 40px 24px;
  }
}

@media(max-width: 850px) {
  .evo-sp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .evo-sp-card:nth-child(3) {
    grid-column: 1 / -1; 
  }
}

@media(max-width: 650px) {
  .evo-structure-premium {
    padding: 60px 20px;
  }
  .evo-sp-grid {
    grid-template-columns: 1fr;
  }
  .evo-sp-card:nth-child(3) {
    grid-column: auto; 
  }
}
