    /* New styles for the navigation buttons inside the modal */
    /* --- Modal Overlay CSS --- */
    .stock-verify-overlay .modal-overlay {
        position: fixed;
        /* Stay in place */
        z-index: 1000;
        /* Sit on top */
        left: 0;
        top: 0;
        width: 100%;
        /* Full width */
        height: 100%;
        /* Full height */
        background-color: rgba(0, 0, 0, 0.9);
        /* Black background with opacity */
        justify-content: center;
        align-items: center;
  
        /* Pure CSS transition properties */
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
      }
  
      .stock-verify-overlay .modal-overlay.active {
        visibility: visible;
        opacity: 1;
        display: flex;
        /* Make sure it's flex when active to center content */
      }
  
      .stock-verify-overlay .modal-content {
        margin: auto;
        display: block;
        max-width: 80%;
        max-height: 80%;
        width: 100%;
        object-fit: contain;
        background: transparent;
      }
  
      /* New styles for the navigation buttons inside the modal */
      .stock-verify-overlay .modal-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: #f1f1f1;
        font-size: 50px;
        font-weight: bold;
        padding: 16px;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
        user-select: none;
        cursor: pointer;
      }
  
      .stock-verify-overlay .modal-nav:hover {
        background-color: rgba(0, 0, 0, 0.8);
      }
  
      .stock-verify-overlay .prev-button {
        left: 0;
        border-radius: 3px 0 0 3px;
      }
  
      .stock-verify-overlay .next-button {
        right: 0;
        border-radius: 3px 0 0 3px;
      }
  
      .stock-verify-overlay .modal-close {
        position: absolute;
        top: 90px;
        right: 15px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        cursor: pointer;
      }
  
      .stock-verify-overlay .modal-close:hover,
      .stock-verify-overlay .modal-close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
      }
      
    .agree-section .img-box {
        margin: 18px 0px;
        padding: 15px;
        width: 100%;
        height: 270px;
        /* fixed height for all boxes */
        overflow: hidden;
        border: 1px solid #ccc;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f9f9f9;
    }

    .agree-section .img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* crop and fit */
    }
    
    .agree-section .certificate {
        height: 530px;
    }
    
    @media (max-width: 576px) {
        .agree-section .img-box {
            margin: 10px 0px;
            padding: 10px;
            height: 200px;
        }
        
     .agree-section .certificate {
        height: 530px;
    }
    }
    