/* ===================================
   HOW IT WORKS PAGE STYLES
   =================================== */

/* Hero Section */
.hiw-hero {
  background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
  padding: 60px 0 50px;
  text-align: center;
  border-bottom: 1px solid #e5e9f2;
}

.hiw-hero h1 {
  font-size: 42px;
  font-weight: 900;
  color: #0b2f59;
  margin: 0 0 12px;
  line-height: 1.2;
}

.hiw-hero p {
  font-size: 18px;
  color: #4c5f76;
  margin: 0;
  font-weight: 500;
}

/* Steps Section */
.steps-section {
  padding: 80px 0 80px;
  background: #ffffff;
  position: relative;
}

.steps-section .row {
  position: relative;
}

.step-item {
  text-align: center;
  position: relative;
  padding: 0 15px;
  z-index: 2;
}

.step-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.step-icon {
  width: 140px;
  height: 140px;
  background: #f0f3f8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 3px solid #f0f3f8;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.step-item:hover .step-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(230, 160, 27, 0.25);
  border-color: #e6a01b;
  background: white;
}

.step-icon svg {
  transition: transform 0.3s ease;
}

.step-item:hover .step-icon svg {
  transform: scale(1.1);
}

.step-number {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 45px;
  height: 45px;
  background: #0a3c72;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(10, 60, 114, 0.3);
  border: 4px solid white;
  z-index: 3;
}

/* Dotted Connector Lines */
.step-connector {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 140px;
  height: 2px;
  transform: translateY(-50%);
  z-index: 1;
  background-image: linear-gradient(to right, #8b2c6f 50%, transparent 50%);
  background-size: 10px 2px;
  background-repeat: repeat-x;
}

.step-connector::after {
  content: '→';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b2c6f;
  font-size: 18px;
  font-weight: bold;
}

.step-item:last-child .step-connector {
  display: none;
}

.step-item h3 {
  font-size: 22px;
  font-weight: 900;
  color: #0b2f59;
  margin: 0 0 12px;
  line-height: 1.3;
}

.step-item p {
  font-size: 15px;
  color: #4c5f76;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

/* Benefits Wrapper */
.benefits-wrapper {
  background: #ffffff;
  padding: 0 0 80px 0;
}

/* Benefits Bar */
.benefits-bar {
  background: #0a3c72;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 35px 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: start;
}

.benefit-bar-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: transform 0.3s ease;
}

.benefit-bar-item:hover {
  transform: translateY(-3px);
}

.benefit-bar-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.benefit-bar-item:hover .benefit-bar-icon {
  transform: scale(1.15) rotate(5deg);
}

.benefit-bar-content {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.benefit-bar-content h4 {
  font-size: 15px;
  font-weight: 900;
  color: white;
  margin: 0 0 5px;
  line-height: 1.2;
  white-space: nowrap;
}

.benefit-bar-content p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}

/* Active Nav Link */
.nav-link.active {
  color: #e6a01b !important;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e6a01b;
  border-radius: 2px;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
  .hiw-hero h1 {
    font-size: 38px;
  }

  .step-icon {
    width: 120px;
    height: 120px;
  }

  .step-icon svg {
    width: 60px;
    height: 60px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .step-connector {
    width: 100px;
  }

  .benefits-bar {
    padding: 30px 25px;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .benefit-bar-content h4 {
    font-size: 14px;
  }

  .benefit-bar-content p {
    font-size: 11px;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .hiw-hero {
    padding: 50px 0 40px;
  }

  .hiw-hero h1 {
    font-size: 34px;
  }

  .hiw-hero p {
    font-size: 16px;
  }

  .steps-section {
    padding: 60px 0 60px;
  }

  .step-connector {
    display: none;
  }

  .step-item {
    margin-bottom: 40px;
  }

  .step-item:last-child {
    margin-bottom: 0;
  }

  .benefits-wrapper {
    padding: 0 0 60px 0;
  }

  .benefits-bar {
    padding: 35px 30px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 25px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .hiw-hero {
    padding: 40px 20px 30px;
  }

  .hiw-hero h1 {
    font-size: 28px;
  }

  .hiw-hero p {
    font-size: 15px;
  }

  .steps-section {
    padding: 50px 0 50px;
  }

  .step-connector {
    display: none;
  }

  .step-icon {
    width: 110px;
    height: 110px;
  }

  .step-icon svg {
    width: 55px;
    height: 55px;
  }

  .step-number {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border: 3px solid white;
  }

  .step-icon-wrapper {
    margin-bottom: 25px;
  }

  .step-item {
    margin-bottom: 35px;
    padding: 0 10px;
  }

  .step-item h3 {
    font-size: 20px;
  }

  .step-item p {
    font-size: 14px;
  }

  .benefits-wrapper {
    padding: 0 0 50px 0;
  }

  .benefits-bar {
    border-radius: 8px;
    padding: 30px 20px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .benefit-bar-item {
    gap: 12px;
  }

  .benefit-bar-icon {
    width: 45px;
    height: 45px;
  }

  .benefit-bar-icon svg {
    width: 40px;
    height: 40px;
  }

  .benefit-bar-content h4 {
    font-size: 14px;
  }

  .benefit-bar-content p {
    font-size: 12px;
  }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
  .hiw-hero h1 {
    font-size: 24px;
  }

  .hiw-hero p {
    font-size: 14px;
  }

  .step-icon {
    width: 100px;
    height: 100px;
  }

  .step-icon svg {
    width: 50px;
    height: 50px;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .step-item h3 {
    font-size: 18px;
  }

  .step-item p {
    font-size: 13px;
  }

  .benefit-bar-item {
    padding: 18px 12px;
  }

  .benefit-bar-icon {
    width: 50px;
    height: 50px;
  }

  .benefit-bar-icon svg {
    width: 40px;
    height: 40px;
  }

  .benefit-bar-content h4 {
    font-size: 14px;
  }

  .benefit-bar-content p {
    font-size: 11px;
  }
}

/* Animation Enhancements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Hover animation for step numbers */
.step-item:hover .step-number {
  animation: pulse 0.6s ease;
}

/* Icon rotation on hover */
.benefit-bar-icon svg {
  transition: transform 0.5s ease;
}

.benefit-bar-item:hover .benefit-bar-icon svg {
  transform: rotate(360deg);
}

/* Smooth transitions */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
