/* Features Proportion Adjustment - Fine-tuning after column swap */
/* This ensures text and title display properly with their new space allocations */

/* With swapped proportions, adjust text and title styling */
@media screen and (min-width: 768px) {
  /* Text column (now narrower) - optimize for compact display */
  .feature-description {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-right: 0.5rem !important;
  }

  .feature-description p {
    /* Smaller font for narrower column */
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
    margin: 0 0 0.5rem 0 !important;
    /* Ensure text wraps properly in narrow column */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  .feature-number {
    font-size: 0.75rem !important;
    opacity: 0.6 !important;
    font-family: monospace !important;
  }

  /* Title column (now wider) - use the extra space well */
  .feature-title {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-left: 2rem !important;
  }

  .feature-title h3 {
    /* Can use larger font in wider column */
    font-weight: 600 !important;
    letter-spacing: -0.03em !important;
    line-height: 1 !important;
    margin: 0 !important;
    /* Allow wrapping if needed on very small screens */
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

/* Fine-tune for each breakpoint */

/* Large screens - text can be slightly larger */
@media screen and (min-width: 1440px) {
  .feature-description p {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
  }

  .feature-title h3 {
    font-size: 4.5rem !important;
  }

  .feature-number {
    font-size: 0.85rem !important;
  }
}

/* Medium-large screens */
@media screen and (min-width: 1280px) and (max-width: 1439px) {
  .feature-description p {
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
  }

  .feature-title h3 {
    font-size: 4rem !important;
  }

  .feature-number {
    font-size: 0.8rem !important;
  }
}

/* Small laptops - critical range */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .feature-description p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }

  .feature-title h3 {
    font-size: 3.5rem !important;
  }

  .feature-title {
    padding-left: 1.5rem !important;
  }

  .feature-number {
    font-size: 0.75rem !important;
  }
}

/* Very small laptops */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .feature-description p {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
  }

  .feature-title h3 {
    font-size: 3rem !important;
  }

  .feature-title {
    padding-left: 1rem !important;
  }

  .feature-number {
    font-size: 0.7rem !important;
  }
}

/* Ensure videos maintain proper display in middle column */
@media screen and (min-width: 768px) {
  .feature-video-container {
    order: 2 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    background: #f5f5f5 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  .feature-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* Height adjustments for better proportions */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  a.feature-item,
  .feature-item {
    min-height: 220px !important;
    max-height: none !important;
    height: auto !important;
  }

  .feature-video-container {
    height: 180px !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  a.feature-item,
  .feature-item {
    min-height: 180px !important;
  }

  .feature-video-container {
    height: 150px !important;
  }
}

/* Ensure all content is visible */
@media screen and (min-width: 768px) {
  a.feature-item,
  .feature-item {
    overflow: visible !important;
  }

  .feature-description,
  .feature-title {
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }

  .feature-description p {
    overflow: visible !important;
    text-overflow: initial !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    max-height: none !important;
  }
}