  /* CSS for this specific page */


   .hero-section{
        padding-top: 25rem !important;
    }




   /* Smooth Fixes */

/* GPU acceleration for smooth scrolling */
.hero-section,
.proving-purity-section,
.section {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize video rendering */
video {
    will-change: transform;
    backface-visibility: hidden;
}

/* Prevent layout shifts */
.img-fluid {
    height: auto;
    max-width: 100%;
}

/* Smooth scrolling optimization */
html {
    scroll-behavior: smooth;
}

/* Reduce paint operations */
.card,
.service-card,
.info-box {
    will-change: auto;
    contain: layout;
}






  /* Custom refinements */
  .info-box,
  .service-card {
      border-radius: 1rem;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .info-box:hover,
  .service-card:hover,
  .card:hover {
      transform: translateY(-6px);
      box-shadow: 0 0.75rem 1.5rem rgb(0 0 0 / 0.15);
  }

  .info-box .icon,
  .service-card .icon {
      font-size: 2.5rem;
      color: #4e9a06;
      margin-bottom: 1rem;
  }


  /*Publications*/

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
    overflow: hidden; /* round corners */

}

    .card:hover .card-title {
        color: #27632a; /* green theme */
    }

    .card:hover .card-img-top {
        transform: scale(1.03);
    }


.card-img-wrapper {
    position: relative;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    overflow: hidden;
    height: 370px;

}

    /* Create an overlay that blurs what is underneath it */
    .card-img-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(4px); /* Adjust the pixels for more/less blur */
        background-color: rgba(255, 255, 255, 0.1); /* Optional: adds a light tint */
        pointer-events: none; /* Allows clicking through to the image/links */
    }


    .card-img-wrapper img.card-img-top {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        object-position: left;
        margin:0;
        padding:0;
    }

    .card-img-wrapper::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.20);
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        z-index: 5;
        pointer-events: none;
    }


/* Certified logo styling ++ */ 
.certified-logo {
    top: 19px;
    left: 11px;
    width: 97px;
    height: auto;
    z-index: 10;
    border-radius: 8px;
    padding: 4px;
    object-fit: contain;
    position: absolute !important;
}

/* Card body tweaks */
.card-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 4rem!important;
    color: #1f3b17;
}

/*publication card blur*/
.card-img-overlay {
    z-index: 11 !important;
}


.card-img-overlay .btn {
    align-self: flex-start; /* left align */
    width: auto; /* small width, just as needed */
    background-color: #008080; /* teal */
    border-color: #008080;
    padding: 0.55rem 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    z-index:10;
}

    .card-img-overlay .btn:hover {
        background-color: #006666; /* darker teal on hover */
        border-color: #006666;
    }


    @media (max-width:767px){



        .card-img-wrapper img.card-img-top {
            width: 100%!important;
            
        }

        .certified-logo {
            /*            top: 11px !important;
            left: 92px !important;*/
            padding: 2px !important;
            height: 111px !important;
            padding-right: 11rem !important;
        }

    }

/* Target iPad Mini and iPad Air portrait */
@media (min-width:768px) and (max-width: 991px){
    


    .card-img-wrapper img.card-img-top {
        width: 100% !important;
    }

    .certified-logo {
/*        top: 8px !important;
        left: 90px !important;*/
        padding: 2px !important;
        height: 111px !important;
        padding-right:11rem!important;
    }

}


  /* Contact CTA background & spacing */
  .contact-cta {
      background: linear-gradient(135deg, #4e9a06cc, #27632acc), url('/images/botanical-pattern.jpg');
      background-size: cover;
      background-blend-mode: overlay;
      padding: 5rem 0;
  }

  .contact-cta h2 {
      font-weight: 700;
      font-size: 2.75rem;
      margin-bottom: 0.5rem;
  }

  .contact-cta p.lead {
      font-size: 1.25rem;
      max-width: 600px;
      margin: 0 auto 1.5rem auto;
  }

  .py-6 {
      padding-top: 6rem !important;
      padding-bottom: 6rem !important;
  }

  .proving-purity-section p {
      font-family: 'Segoe UI', sans-serif;
      color: aliceblue;
  }

  .proving-purity-section h2 {
      font-family: 'Segoe UI', sans-serif;
      color: aliceblue;
  }

  .proving-purity-section .btn-outline-light {
      border-width: 2px;
      font-weight: 500;
  }

  [data-aos] {
      transition: all 1s ease-in-out;
  }

  .section h2 {
      font-size: 2.2rem;
      font-weight: 600;
  }

  .section p {
      font-size: 1.05rem;
      line-height: 1.7;
      color: #555;
  }

  .py-6 {
      padding-top: 5rem !important;
      padding-bottom: 5rem !important;
  }

  .text-justified p {
      text-align: justify;
  }

.section .col-lg-6 video {
    filter: brightness(1)!important; /* overlay fix */
}

  @media (max-width: 991.98px) {

        .hero-section {
            padding-top: 17rem !important;
        } 

      .proving-purity-section img {
          width: 80% !important;
          max-height: none;
          /* Let it grow naturally on mobile */
          margin-right: 0rem;
      }

      .section img {
          width: 80% !important;
          max-height: none;
          /* Let it grow naturally on mobile */
          /* margin-right: 2rem; */
      }

      .ios-accred{


          margin-bottom:3rem;


      }

  }


  /* Cannabis Section */
  #cannabis-testing {
      background-color: #1f1f1f;
      padding: 1rem;
  }

  #cannabis-testing h2 {
      color: #00bba9;
  }

  #cannabis-testing p {
      text-align: justify;
  }

  #cannabis-testing .btn-outline-light {
      border-color: #fff;
      color: #fff;
      transition: background 0.3s ease, color 0.3s ease;
  }

  #cannabis-testing .btn-outline-light:hover {
      background-color: #fff;
      color: #005a54;
  }

  @media (max-width: 991.98px) {
      #cannabis-testing img {
          width: 90%!important;
          height: auto;
          margin-bottom: 1.5rem;
      }

      #cannabis-testing ul {
          padding-left: 0;
      }

      #cannabis-testing ul li {
          margin-bottom: 0.5rem;
      }

      #cannabis-testing .btn {
          margin-top: 1rem;
      }
  }



.btn-card {
    background: linear-gradient(135deg, #2b6cb0, #00bba9);
    color: #fff;
    border: none;
    font-size: 1.2rem; /* slightly bigger */
    padding: 0.5rem 1rem; /* compact padding */
    border-radius: 15px; /* subtle pill shape */
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    justify-content: flex-start;
    width: auto; /* shrink to content */
    max-width: 123px;
}

    .btn-card:hover {
        background: linear-gradient(135deg, #3b7ad6, #00d4b3); /* slightly lighter / brighter */
        transform: translateY(-2px); /* subtle lift */
        box-shadow: 0 4px 12px rgba(0, 187, 169, 0.4); /* soft glow */
    }

    .btn-card i {
        transition: transform 0.25s ease;
    }

    .btn-card:hover i {
        transform: translateX(3px); /* subtle arrow motion */
    }


.custom-btn-more:hover {
    background: #e0f7f9 !important;
}



.scroll-strip-section .btn-custom {
/*    background-color: #ffffff;*/
/*    color: #000000!important;*/
    padding: 0.75rem 2rem; /* bigger button */
    font-size: 1.2rem;
    border-radius: 0.5rem;
    border: 2px solid #00b3b3; /* optional border for definition */
    transition: all 0.3s ease;
}

    .scroll-strip-section .btn-custom:hover {
        background-color: #00b3b3; /* teal on hover */
/*        color: #ffffff;*/
        text-decoration: none;
    }



.video-thumb img {
    display: block;
    width: 100%;
    height: auto; /* preserves 16:9 ratio, removes black bars */
}

.play-overlay {
    font-size: 2.5rem;
    color: gray;
    opacity:0.5;
    transition: color 0.3s ease, transform 0.3s ease;
}

.video-thumb:hover .play-overlay {
    color: #00b3b3; /* teal hover */
    opacity: 1;
    transform: scale(1.2);
}




/* Desktop (default) */
/* Scroll Strip Section BG */
.scroll-strip-section .scroll-bg {
    position: fixed;
    top: 0; /* anchor to top */
    left: 0;
    width: 60%;
    height: 100%;
    margin-top: 3.5rem; /* if you need spacing */
    background: url('/images/aprc-scroll-strip-bg.png') center/contain no-repeat;
    background-attachment: scroll;
    z-index: -1;
    display: block !important;
    /* Performance hints */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}


.scroll-strip-section {
    position: relative;
    overflow: hidden; /* keeps fixed child visually inside */

}

/* Content width desktop */
.scroll-strip-section .text-right {
    width: 35%;
    margin-right: 3rem;
}




/* Tablet / Mobile stacking */
/* Mobile / tablet stacking — include iPad Pro (1366px width) */
@media (max-width: 1234px) {
    
    /* Hide desktop fixed image */
    .scroll-strip-section .scroll-bg {
        display: none !important;
    }

    /* Show mobile image */
    .scroll-bg-mobile {
        display: block !important;
        width: 90%;
        max-width: 450px; /* bigger frame for iPad Pro */
        margin: 2rem auto;
        text-align: center;
    }

    .scroll-bg-mobile img {
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

    /* Stack content below mobile image */
    .scroll-strip-section .container {
        flex-direction: column !important;
        align-items: center;
        justify-content: flex-start !important;
        height: auto !important;
        margin-top: 1rem;
    }

    .scroll-strip-section .text-right {
        width: 95% !important;
        margin: 1rem auto 0 auto !important;
        text-align: center;
    }

    .scroll-strip-section .d-flex.flex-column.flex-md-row {
        flex-direction: column !important;
        align-items: center;
        gap: 1.5rem !important;
    }
}


@media (min-width: 3500px) {
    .scroll-strip-section .container {
        margin-right: 90rem;
    }
}

@media (min-width: 3900px) {
    .scroll-strip-section .container {
        margin-right: 134rem;
    }
}








/* PDF Modal Popup */
/* Modal container */
.modal-body {
    padding: 0 !important;
    height: calc(90vh - 112px);
    /* header + footer height */
    display: flex;
    overflow: hidden;
}

  .modal-body iframe {
      flex-grow: 1;
      width: 100%;
      height: 100%;
      border: none;
  }

  body.modal-open {
      padding-right: 0 !important;
  }







