/* =================================
   protocol.css  (PROTOCOL PAGE ONLY)
   ================================= */

/* ---------- Tablet & below (≤ 991px) ---------- */
@media screen and (max-width: 991px) {
  /* 0) NO fixed heights on protocol layout */
  .body-3,
  .page-wrap,
  .section-7,
  .section-22 {
    height: auto !important;
    min-height: auto !important;
  }

  /* Header + intro text for EDIX section */
  .the-edix-protocol-heading {
    font-size: 3rem;
  }

  .edix-protocol-subheading {
    font-size: 1.75rem;
  }

  .edix-protocol-para {
    max-width: 48rem;
    margin: 0 auto;
  }

  /* Top EDIX hero section padding on tablet */
  .section-7 .padding-section-medium-2 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* “How EDIX Works” 4-step image grid – 2 columns on tablet */
  .section-7 .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column-gap: 24px;
    grid-row-gap: 24px;
  }

  .section-7 .grid-2 > div {
    justify-self: center;
  }

  /* EDIX chain section spacing */
  .section-22 {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .section-22 .div-block-18 {
    margin-top: 2rem;
  }

  /* First card a little space from heading */
  .section-22 .div-block-17 {
    margin-top: 1.5rem !important;
  }

  /* All cards same width & spacing below */
  .section-22 .div-block-17,
  .section-22 .div-block-16,
  .section-22 .div-block-19,
  .section-22 .div-block-20 {
    width: 100% !important;
    margin-bottom: 2rem !important;
  }

  /* ✅ TABS: image wrapper uses natural height, but never too huge */
  .section-22 .features-icon-wrapper {
    width: auto !important;
    height: auto !important;
    max-height: 320px !important;
    margin-bottom: 1.25rem !important;
  }

  .section-22 .image-12 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
}

/* ---------- Mobile (≤ 767px) ---------- */
@media screen and (max-width: 767px) {
  .body-3,
  .page-wrap,
  .section-7,
  .section-22 {
    height: auto !important;
    min-height: auto !important;
  }

  .section-22 {
    padding-bottom: 4.5rem !important;
  }

  /* Headings responsive */
  .the-edix-protocol-heading {
    font-size: 2.4rem;
    line-height: 1.2;
    text-align: center;
  }

  .edix-protocol-subheading {
    font-size: 1.5rem;
    line-height: 1.4;
    text-align: center;
  }

  .edix-protocol-para {
    padding: 0 1.25rem;
    text-align: center;
  }

  /* EDIX chain grid one column */
  .section-22 .container-18 {
    width: 90% !important;
    max-width: 420px !important;
  }

  .section-22 .grid {
    grid-template-columns: 1fr;
    grid-row-gap: 24px;
    width: 100%;
  }

  .section-22 .div-block-17,
  .section-22 .div-block-16,
  .section-22 .div-block-19,
  .section-22 .div-block-20 {
    width: 100% !important;
    margin-bottom: 2.5rem !important;
    padding: 1.75rem 1.25rem !important;
    box-sizing: border-box;
  }

  /* Reset any Webflow offsets */
  .section-22 .main-edix-chain,
  .section-22 .main-edix-chain-para,
  .section-22 .edix-zones-heading,
  .section-22 .edix-zones-para {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto;
    margin: 0;
  }

  /* 🧩 Stack vertically inside each card */
  .section-22 .features-heading-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: auto !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    gap: 1rem !important;
    
  }

  /* 📱 Larger image perfectly inside the card */
  .section-22 .features-icon-wrapper {
    width: 90% !important;
    max-width: 320px !important;
    height: auto !important;
    margin: 8rem auto -8rem !important; /* perfect balance for centered image */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
  }

  .section-22 .image-12 {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
  }

  /* 🎯 Title + paragraph alignment inside cards */
  .section-22 .features-heading.align-left {
    width: 100%;
    text-align: center !important;
    margin-top: 0.5rem !important;
    font-size: 1.25rem !important;
    line-height: 1.3;
    letter-spacing: 0.01em;
    padding-left: 30px;
  }

  .section-22 .main-edix-chain-para,
  .section-22 .edix-zones-para {
    text-align: center;
    line-height: 1.55;
    font-size: 0.95rem;
    max-width: 90%;
    margin: 0.5rem auto 0.75rem !important;
  }

  /* ✅ Checklist alignment and spacing */
  .section-22 .check-list {
    margin-top: 0.75rem !important;
    padding-left: 0 !important;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    gap: 0.35rem;
  }

  .section-22 .check-list-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
  }

  /* Orientation flip support */
  @media screen and (orientation: landscape) {
    .section-22 .features-icon-wrapper {
      max-width: 240px !important;
      margin: 5rem auto -5rem !important;
    }
    .section-22 .features-heading.align-left {
      font-size: 1.15rem !important;
    }
    .section-22 .main-edix-chain-para,
    .section-22 .edix-zones-para {
      font-size: 0.9rem !important;
      max-width: 95%;
    }
  }
}

