/* ======================
   FEATURES SECTION - RESPONSIVE IMPLEMENTATION
   Desktop (1920px) and Mobile (393px) Figma specifications
   Responsive for all screen sizes
   ====================== */

.home-features-section .features {
  width: 100%;
  position: relative;
  box-sizing: border-box;
  text-align: left;
  color: #333f5b;
  font-family: 'P22 Mackinac Pro', serif;
}

/* Features Grid Container */
.home-features-section .featuresGrid {
  width: 100%;
  display: grid;
  
  /* Mobile: 320px – 480px - single column */
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Tablet: 481px – 1024px - single column with larger gap */
@media (min-width: 481px) and (max-width: 1024px) {
.home-features-section .featuresGrid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Laptop: 1025px – 1366px - horizontal grid layout */
@media (min-width: 1025px) and (max-width: 1366px) {
  .home-features-section .featuresGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* Desktop: 1367px – 1920px - horizontal grid with larger gap */
@media (min-width: 1367px) and (max-width: 1920px) {
  .home-features-section .featuresGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* Large Desktop: 1921px+ - horizontal grid with maximum gap */
@media (min-width: 1921px) {
  .home-features-section .featuresGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.home-features-section .feature {
  border-top: 1px solid #e3e3e5;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  
  /* Desktop styles */
  flex: 1;
  padding: 48px 0px;
  gap: 32px;
}

@media (max-width: 767px) {
  .home-features-section .feature {
    align-self: stretch;
    flex: none;
    padding: 32px 0px;
    gap: 22px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-features-section .feature {
    padding: clamp(32px, 4vw, 48px) 0px;
    gap: clamp(24px, 3vw, 32px);
  }
}

.home-features-section .frameParent {
  display: flex;
  align-items: center;
  position: relative;
  
  /* Desktop styles */
  border-radius: 50px;
  gap: 10px;
}

@media (max-width: 767px) {
  .home-features-section .frameParent {
    border-radius: 38.89px;
    gap: 7.8px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-features-section .frameParent {
    border-radius: clamp(39px, 5vw, 50px);
    gap: clamp(8px, 1vw, 10px);
  }
}

.home-features-section .frameChild {
  position: absolute;
  margin: 0 !important;
  background: linear-gradient(95.49deg, rgba(52, 148, 253, 0.3), rgba(243, 127, 84, 0.3));
  z-index: 0;
  
  /* Desktop styles */
  width: 72px;
  height: 72px;
  top: calc(50% - 36px);
  left: calc(50% - 36px);
  filter: blur(10px);
  border-radius: 500px;
}

@media (max-width: 767px) {
  .home-features-section .frameChild {
    width: 56px;
    height: 56px;
    top: calc(50% - 28px);
    left: calc(50% - 28px);
    filter: blur(7.78px);
    border-radius: 388.89px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-features-section .frameChild {
    width: clamp(56px, 7vw, 72px);
    height: clamp(56px, 7vw, 72px);
    top: calc(50% - clamp(28px, 3.5vw, 36px));
    left: calc(50% - clamp(28px, 3.5vw, 36px));
    filter: blur(clamp(8px, 1vw, 10px));
    border-radius: 500px;
  }
}

.home-features-section .frameItem {
  border-radius: 500px;
  max-height: 100%;
  z-index: 1;
  object-fit: cover;
  
  /* Desktop styles */
  width: 72px;
  height: 72px;
}

@media (max-width: 767px) {
  .home-features-section .frameItem {
    width: 56px;
    height: 56px;
    border-radius: 388.89px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-features-section .frameItem {
    width: clamp(56px, 7vw, 72px);
    height: clamp(56px, 7vw, 72px);
  }
}

.home-features-section .wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  
  /* Desktop styles */
  gap: 16px;
}

@media (max-width: 767px) {
  .home-features-section .wrapper {
    gap: 12px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-features-section .wrapper {
    gap: clamp(12px, 1.5vw, 16px);
  }
}

.home-features-section .heading {
  position: relative;
  letter-spacing: -0.02em;
  margin: 0;
  
  /* Desktop styles */
  line-height: 140%;
  font-weight: 700;
  font-size: inherit;
}

@media (max-width: 767px) {
  .home-features-section .heading {
    line-height: 120%;
    font-weight: 500;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-features-section .heading {
    line-height: clamp(120%, 1vw, 140%);
    font-weight: 600;
  }
}

.home-features-section .featuresHeading {
  position: relative;
  letter-spacing: -0.03em;
  font-weight: 500;
  font-family: 'Avenir Next', sans-serif;
  color: #6d717b;
  margin: 0;
  
  /* Desktop styles */
  font-size: 20px;
  line-height: 150%;
}

@media (max-width: 767px) {
  .home-features-section .featuresHeading {
    font-size: 17px;
    letter-spacing: -0.02em;
    line-height: 145%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-features-section .featuresHeading {
    font-size: clamp(17px, 2vw, 20px);
    line-height: clamp(145%, 0.5vw, 150%);
  }
}

/* Small mobile devices (320px and below) */
@media (max-width: 374px) {
  .home-features-section .features {
    padding: 0px 16px;
    font-size: 18px;
  }
  
  .home-features-section .feature {
    padding: 24px 0px;
    gap: 16px;
  }
  
  .home-features-section .frameChild,
  .home-features-section .frameItem {
    width: 48px;
    height: 48px;
  }
  
  .home-features-section .frameChild {
    top: calc(50% - 24px);
    left: calc(50% - 24px);
    filter: blur(6px);
  }
  
  .home-features-section .wrapper {
    gap: 8px;
  }
  
  .home-features-section .featuresHeading {
    font-size: 15px;
  }
}

/* Extra large screens */
@media (min-width: 1680px) {
  .home-features-section .features {
    max-width: 1680px;
    margin: 0 auto;
  }
}