/* ============================================
   ExamConnect — How It Works Section (Design 2)
   Brand: #327b74 Teal | #0F4C81 Navy | #F59E0B Amber
   Static 4-step card grid design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

.ec-hiw {
  background: #fff;
  padding: 60px 0;
  font-family: 'Poppins', sans-serif;
}

.ec-hiw * {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif !important;
}

.ec-hiw .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === HEADING === */
.ec-hiw-head {
  text-align: center;
  margin-bottom: 36px;
}

.ec-hiw-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff8e6;
  color: #c17a00;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #F59E0B;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.ec-hiw-title {
  font-size: 32px;
  font-weight: 800;
  color: #0F4C81;
  margin: 0 0 8px;
  line-height: 1.25;
}

.ec-hiw-title b {
  color: #327b74;
}

.ec-hiw-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 auto;
  max-width: 580px;
  line-height: 1.55;
}

/* === GRID === */
.ec-hiw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

/* === CARDS === */
.ec-hiw-card {
  background: #fafbfc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  position: relative;
  transition: all 0.25s ease;
  overflow: hidden;
}

.ec-hiw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 76, 129, 0.12);
  border-color: #327b74;
  background: #fff;
}

.ec-hiw-card-step {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 44px;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
  letter-spacing: -1px;
  transition: color 0.25s ease;
  font-family: 'Poppins', sans-serif !important;
}

.ec-hiw-card:hover .ec-hiw-card-step {
  color: #cbd5e1;
}

.ec-hiw-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #fff;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Different gradient for each step */
.ec-hiw-card:nth-child(1) .ec-hiw-card-icon {
  background: linear-gradient(135deg, #327b74, #0F4C81);
}

.ec-hiw-card:nth-child(2) .ec-hiw-card-icon {
  background: linear-gradient(135deg, #F59E0B, #d97706);
}

.ec-hiw-card:nth-child(3) .ec-hiw-card-icon {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.ec-hiw-card:nth-child(4) .ec-hiw-card-icon {
  background: linear-gradient(135deg, #10b981, #0F6E56);
}

.ec-hiw-card-icon svg {
  width: 24px;
  height: 24px;
}

.ec-hiw-card-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0F4C81 !important;
  margin: 0 0 8px !important;
  position: relative;
  z-index: 1;
}

.ec-hiw-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* === CTA Button === */
.ec-hiw-cta {
  text-align: center;
  margin-top: 32px;
}

.ec-hiw-cta .btn {
  background: linear-gradient(135deg, #327b74, #0F6E56) !important;
  color: #fff !important;
  padding: 12px 32px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(50, 123, 116, 0.3);
  text-decoration: none !important;
  font-family: 'Poppins', sans-serif !important;
  transition: all 0.2s ease;
}

.ec-hiw-cta .btn:hover {
  background: linear-gradient(135deg, #245c57, #0a5040) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(50, 123, 116, 0.4);
  color: #fff !important;
}

.ec-hiw-cta .btn::after {
  content: '→';
  margin-left: 4px;
  font-weight: 700;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 991px) {
  .ec-hiw {
    padding: 40px 0;
  }
  
  .ec-hiw-title {
    font-size: 26px;
  }
  
  .ec-hiw-card {
    padding: 20px;
  }
  
  .ec-hiw-card-step {
    font-size: 38px;
  }
}

@media (max-width: 767px) {
  .ec-hiw {
    padding: 30px 0;
  }
  
  .ec-hiw-title {
    font-size: 22px;
  }
  
  .ec-hiw-subtitle {
    font-size: 13px;
  }
  
  .ec-hiw-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .ec-hiw-card {
    padding: 18px;
  }
  
  .ec-hiw-card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
  }
  
  .ec-hiw-card-title {
    font-size: 15px !important;
  }
  
  .ec-hiw-card-desc {
    font-size: 12px;
  }
  
  .ec-hiw-card-step {
    font-size: 32px;
  }
}