/**
 * Laureate Why Choose Us Section Styles
 *
 * @package Laureate
 * @version 1.0.0
 */

:root {
  --sw-blue: #0a2248; 
  --sw-green: #1d960c;
  --sw-text: #475569;
  --sw-bg: #ffffff;
  --sw-border: #f1f5f9;
  --sw-hover: #f8fafc;
  --sw-icon-bg: #f0fdf4; 
}

.evo-smart-why,
.evo-smart-why * {
  box-sizing: border-box;
}

.evo-smart-why {
  background-color: var(--sw-bg);
  padding: 30px 24px;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

.evo-sw-container {
  max-width: 1140px; 
  margin: auto;
}

/* --- Centered Header with WP Fixes --- */
.evo-sw-header {
  text-align: center !important;
  margin-bottom: 60px;
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center;
  width: 100%;
}

.evo-micro-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--sw-icon-bg);
  color: var(--sw-green);
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 auto 24px auto !important;
  border: 1px solid rgba(29, 150, 12, 0.15);
  opacity: 0; 
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--sw-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(29, 150, 12, 0.4);
  animation: swPulse 2s infinite;
}

@keyframes swPulse {
  0% { box-shadow: 0 0 0 0 rgba(29, 150, 12, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(29, 150, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 150, 12, 0); }
}

.evo-sw-header h2 {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--sw-blue);
  margin: 0 auto 16px auto !important;
  opacity: 0; 
  text-align: center;
}

.text-gradient {
  background: linear-gradient(to right, var(--sw-blue) 0%, var(--sw-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.evo-sw-header p {
  font-size: 18px;
  line-height: 1.6;
  color: #000000;
  font-weight: 500;
  max-width: 750px;
  margin: 0 auto !important;
  opacity: 0; 
  text-align: center;
}

/* --- Grid Layout (2x2) --- */
.evo-sw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* --- Premium Card Styling & Accent Hover Effect --- */
.evo-smart-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  background: var(--sw-bg);
  border: 1px solid var(--sw-border);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
  opacity: 0; 
  position: relative;
  overflow: hidden; 
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.evo-smart-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--sw-green);
  transform: scaleY(0);
  transition: transform 0.4s ease;
  transform-origin: center;
}

.evo-smart-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(10, 34, 72, 0.08); 
  background: var(--sw-hover);
  border-color: rgba(29, 150, 12, 0.2);
}

.evo-smart-card:hover::before {
  transform: scaleY(1);
}

.sw-icon {
  width: 52px;
  height: 52px;
  background: var(--sw-icon-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.evo-smart-card:hover .sw-icon {
  transform: scale(1.08) rotate(-3deg);
  background: rgba(29, 150, 12, 0.12);
}

.sw-icon img {
  width: 26px;
  height: 26px;
  transition: transform 0.4s ease;
  filter: invert(38%) sepia(87%) saturate(1159%) hue-rotate(85deg) brightness(93%) contrast(92%);
}

.sw-text h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--sw-blue);
  margin: 0 0 10px;
  transition: color 0.3s ease;
}

.evo-smart-card:hover .sw-text h3 {
  color: var(--sw-green); 
}

.sw-text p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--sw-text);
  margin: 0;
}

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

.evo-micro-badge {
  animation: fadeUpElegance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
.evo-sw-header h2 {
  animation: fadeUpElegance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.evo-sw-header p {
  animation: fadeUpElegance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.evo-smart-card:nth-child(1) {
  animation: fadeUpElegance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
.evo-smart-card:nth-child(2) {
  animation: fadeUpElegance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.evo-smart-card:nth-child(3) {
  animation: fadeUpElegance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}
.evo-smart-card:nth-child(4) {
  animation: fadeUpElegance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

/* --- Mobile Responsiveness --- */
@media(max-width: 991px) {
  .evo-sw-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 650px) {
  .evo-smart-why {
    padding: 60px 20px;
  }
  
  .evo-sw-header h2 {
    font-size: 32px;
  }

  .evo-smart-card {
    padding: 24px 20px;
    flex-direction: column;
    gap: 16px;
  }
}
